Enable auto-release
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user