2 Commits
v0.2 ... v0.1.3

Author SHA1 Message Date
982eeecabc ci: replace action-gh-release with direct Gitea API calls
All checks were successful
Release / build (push) Successful in 5s
2026-03-18 02:58:34 +01:00
04a8c95ad6 ci: remove upload-artifact step, not supported on Gitea
All checks were successful
Release / build (push) Successful in 13s
2026-03-18 02:57:15 +01:00

View File

@@ -26,15 +26,23 @@ jobs:
--output elden-counter.exe \
server.ts
- name: Create release
uses: actions/upload-artifact@v4
with:
name: elden-counter.exe
path: elden-counter.exe
- name: Publish release
uses: softprops/action-gh-release@v2
with:
files: elden-counter.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA_URL: ${{ github.server_url }}
REPO: ${{ github.repository }}
TAG: ${{ github.ref_name }}
run: |
# Create the release
RELEASE=$(curl -s -X POST "$GITEA_URL/api/v1/repos/$REPO/releases" \
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"draft\":false,\"prerelease\":false}")
RELEASE_ID=$(echo "$RELEASE" | grep -o '"id":[0-9]*' | head -1 | cut -d: -f2)
# Upload the exe as a release asset
curl -s -X POST "$GITEA_URL/api/v1/repos/$REPO/releases/$RELEASE_ID/assets" \
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @elden-counter.exe \
-G --data-urlencode "name=elden-counter.exe"