Fix release workflow to use curl for asset upload
CI / ci (push) Successful in 47s

- Replace gitea.com/actions/release-action with direct API calls
- Upload module.zip and module.json to existing release using Gitea API
- Use release.id from event context to target correct release

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-05-25 15:23:51 +02:00
parent 882b6ec9cc
commit 4a43c0b6a6
+15 -13
View File
@@ -48,19 +48,21 @@ jobs:
- run: node scripts/package.mjs - run: node scripts/package.mjs
- name: setup go - name: Upload release assets
uses: https://github.com/actions/setup-go@v4 run: |
with: # Upload module.zip
go-version: '>=1.20.1' curl -s -X POST \
-H "Content-Type: application/octet-stream" \
- name: Use Go Action -H "Authorization: token ${{secrets.ALLOW_PUSH_RELEASE}}" \
id: use-go-action --data-binary @./module.zip \
uses: https://gitea.com/actions/release-action@main "https://www.uberwald.me/api/v1/repos/${{gitea.repository}}/releases/${{gitea.event.release.id}}/assets?name=module.zip"
with:
files: |- # Upload module.json
./module.zip curl -s -X POST \
module.json -H "Content-Type: application/json" \
api_key: '${{secrets.ALLOW_PUSH_RELEASE}}' -H "Authorization: token ${{secrets.ALLOW_PUSH_RELEASE}}" \
--data-binary @./module.json \
"https://www.uberwald.me/api/v1/repos/${{gitea.repository}}/releases/${{gitea.event.release.id}}/assets?name=module.json"
- name: Publish to Foundry server - name: Publish to Foundry server
uses: https://github.com/djlechuck/foundryvtt-publish-package-action@v1 uses: https://github.com/djlechuck/foundryvtt-publish-package-action@v1