Update actions/upload-artifact to v4
All checks were successful
Cache OSM data / cache (push) Successful in 21m40s
All checks were successful
Cache OSM data / cache (push) Successful in 21m40s
and remove hardcoded alpine runner
This commit is contained in:
parent
835397a6ba
commit
3c9e39a9d5
1 changed files with 10 additions and 8 deletions
|
@ -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
|
Loading…
Reference in a new issue