Enable auto-release

This commit is contained in:
2026-05-22 14:05:25 +02:00
parent 9717bc7b77
commit 7947ceaff1
+6 -6
View File
@@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- 'v*.*.*'
- "v*.*.*"
jobs:
release:
@@ -16,8 +16,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
@@ -72,7 +72,7 @@ jobs:
# Create the release
RELEASE_RESPONSE=$(curl -s -X POST \
"${GITEA_URL}/api/v1/repos/${REPO}/releases" \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
-H "Authorization: token ${{ secrets.RELEASE_PRISM }}" \
-H "Content-Type: application/json" \
-d "{
\"tag_name\": \"${TAG}\",
@@ -89,13 +89,13 @@ jobs:
# Upload fvtt-prism-rpg.zip
curl -s -X POST \
"${GITEA_URL}/api/v1/repos/${REPO}/releases/${RELEASE_ID}/assets?name=fvtt-prism-rpg.zip" \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
-H "Authorization: token ${{ secrets.RELEASE_PRISM }}" \
-H "Content-Type: application/zip" \
--data-binary @fvtt-prism-rpg.zip
# Upload system.json (for direct manifest URL)
curl -s -X POST \
"${GITEA_URL}/api/v1/repos/${REPO}/releases/${RELEASE_ID}/assets?name=system.json" \
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
-H "Authorization: token ${{ secrets.RELEASE_PRISM }}" \
-H "Content-Type: application/json" \
--data-binary @system.json