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
+14 -12
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" \
-H "Authorization: token ${{secrets.ALLOW_PUSH_RELEASE}}" \
--data-binary @./module.zip \
"https://www.uberwald.me/api/v1/repos/${{gitea.repository}}/releases/${{gitea.event.release.id}}/assets?name=module.zip"
- name: Use Go Action # Upload module.json
id: use-go-action curl -s -X POST \
uses: https://gitea.com/actions/release-action@main -H "Content-Type: application/json" \
with: -H "Authorization: token ${{secrets.ALLOW_PUSH_RELEASE}}" \
files: |- --data-binary @./module.json \
./module.zip "https://www.uberwald.me/api/v1/repos/${{gitea.repository}}/releases/${{gitea.event.release.id}}/assets?name=module.json"
module.json
api_key: '${{secrets.ALLOW_PUSH_RELEASE}}'
- 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