Gitea Actions improvement
Build LinkLog Development Image / development-image (push) Successful in 19s

This commit is contained in:
Olaf
2026-08-25 21:44:46 +02:00
parent d38db06c30
commit 05c4ebe526
3 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -32,7 +32,7 @@ jobs:
with:
registry: git.kolkman.org
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and publish Docker image
uses: docker/build-push-action@v6
@@ -49,12 +49,12 @@ jobs:
- name: Create Gitea release
id: gitea_release
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
VERSION: ${{ steps.release.outputs.version }}
run: |
response=$(curl --fail-with-body --silent --show-error \
-X POST \
-H "Authorization: token $GITEA_TOKEN" \
-H "Authorization: token $RELEASE_TOKEN" \
-H 'Content-Type: application/json' \
-d "{\"tag_name\":\"v$VERSION\",\"name\":\"LinkLog $VERSION\",\"draft\":false,\"prerelease\":false}" \
https://git.kolkman.org/api/v1/repos/olaf/Link-Log/releases)
@@ -66,17 +66,17 @@ jobs:
- name: Upload signed XPI and update manifest
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
UPLOAD_URL: ${{ steps.gitea_release.outputs.upload_url }}
VERSION: ${{ steps.release.outputs.version }}
run: |
curl --fail-with-body --silent --show-error \
-X POST -H "Authorization: token $GITEA_TOKEN" \
-X POST -H "Authorization: token $RELEASE_TOKEN" \
-H 'Content-Type: application/x-xpinstall' \
--data-binary "@XPI/signed/LinkLog-$VERSION.xpi" \
"$UPLOAD_URL?name=LinkLog-$VERSION.xpi"
curl --fail-with-body --silent --show-error \
-X POST -H "Authorization: token $GITEA_TOKEN" \
-X POST -H "Authorization: token $RELEASE_TOKEN" \
-H 'Content-Type: application/json' \
--data-binary @webextension/updates.json \
"$UPLOAD_URL?name=updates.json"