Update actions/upload-artifact to v4
All checks were successful
Cache OSM data / cache (push) Successful in 21m40s

and remove hardcoded alpine runner
This commit is contained in:
Charles P. 2024-07-06 18:41:55 +02:00
parent 835397a6ba
commit 3c9e39a9d5
Signed by untrusted user who does not match committer: aeris
GPG key ID: 1708D5CC4095E76B

View file

@ -10,13 +10,7 @@ on:
jobs:
cache:
runs-on: docker
container:
image: 'alpine:latest'
steps:
- name: Install curl
run: |
apk add --no-cache curl
- name: Download OSM data
run: |
curl -L -o osm.pbf \
@ -37,13 +31,21 @@ jobs:
output_file: competences-territoriales.geojson
- name: Upload as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: competences-territoriales
path: competences-territoriales.geojson
- name: Upload to Forgejo Package Registry
run: |
curl --user ${{ secrets.USERNAME }}:${{ secrets.PAT }} \
--upload-file competences-territoriales.geojson \
--fail \
https://forgejo.almanach.altearn.xyz/api/packages/aeris/generic/competences-territoriales-police-france/$(date +%Y-%m-%d)/competences-territoriales.geojson
https://forgejo.almanach.altearn.xyz/api/packages/aeris/generic/competences-territoriales-police-france/$(date +%Y-%m-%d)/competences-territoriales.geojson && \
curl --user ${{ secrets.USERNAME }}:${{ secrets.PAT }} \
--request DELETE \
https://forgejo.almanach.altearn.xyz/api/packages/aeris/generic/competences-territoriales-police-france/latest/competences-territoriales.geojson && \
curl --user ${{ secrets.USERNAME }}:${{ secrets.PAT }} \
--upload-file competences-territoriales.geojson \
--fail \
https://forgejo.almanach.altearn.xyz/api/packages/aeris/generic/competences-territoriales-police-france/latest/competences-territoriales.geojson