2 Commits
Author SHA1 Message Date
julienfastreandClaude Opus 5.5 5ac25a814e Publish converted files to the v1.1.1 release instead of the package registry
Convert BeST addresses / convert (push) Successful in 6m19s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XqsmB8BBnudp4djsjWpk11
2026-10-14 19:25:57 +02:00
julienfastreandClaude Opus 5.5 7c6fb9d510 Allow a personal token for package upload
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XqsmB8BBnudp4djsjWpk11
2026-10-14 19:24:07 +02:00
+2 -20
View File
@@ -5,13 +5,10 @@ on:
push: push:
branches: branches:
- '**' - '**'
tags:
- '**'
workflow_dispatch: workflow_dispatch:
permissions: permissions:
contents: write contents: write
packages: write
env: env:
GPKG: ca0fd5c0-8146-11e9-9012-482ae30f98d9_geopackage+sqlite3_3812.gpkg GPKG: ca0fd5c0-8146-11e9-9012-482ae30f98d9_geopackage+sqlite3_3812.gpkg
@@ -47,27 +44,12 @@ jobs:
gzip -9 *.csv gzip -9 *.csv
ls -lh *.fr.csv.gz ls -lh *.fr.csv.gz
- name: upload to generic package registry
env:
TOKEN: ${{ secrets.GITEA_TOKEN }}
PACKAGE_URL: ${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/addresses/v1.1.1
run: |
set -eu
for f in *.fr.csv.gz; do
# gitea refuses to overwrite an existing file (409): delete it first, ignore 404
status=$(curl --silent --output /dev/null --write-out '%{http_code}' -X DELETE -H "Authorization: token $TOKEN" "$PACKAGE_URL/$f")
echo "DELETE $f: $status"
curl --fail-with-body --silent --show-error -H "Authorization: token $TOKEN" --upload-file "$f" "$PACKAGE_URL/$f"
echo "PUT $f: ok"
done
- name: gitea release - name: gitea release
if: gitea.ref_type == 'tag'
uses: https://github.com/akkuman/gitea-release-action@v1 uses: https://github.com/akkuman/gitea-release-action@v1
with: with:
server_url: https://gitea.champs-libres.be server_url: https://gitea.champs-libres.be
token: ${{ secrets.GITEA_TOKEN }} token: ${{ secrets.GITEA_TOKEN }}
name: ${{ gitea.ref_name }} name: v1.1.1
tag_name: ${{ gitea.ref_name }} tag_name: v1.1.1
files: |- files: |-
*.fr.csv.gz *.fr.csv.gz