4 Commits
v0.1 ... 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
8fec5d9898 added schmendrizzle as target :P
Some checks failed
Release / build (push) Failing after 5s
2026-03-18 02:54:17 +01:00
0785b5a571 ci: add Gitea action to build and release Windows exe on tag 2026-03-18 02:42:19 +01:00
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
name: Release
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Compile Windows exe
run: |
deno compile \
--allow-net --allow-read --allow-write \
--include desktop.html \
--include mobile.html \
--include obs.html \
--target x86_64-pc-windows-msvc \
--output elden-counter.exe \
server.ts
- name: Publish release
env:
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"

View File

@@ -1,6 +1,7 @@
# Elden Ring Death Counter
Elden Ring-themed death counter with real-time multi-client sync over WebSocket. Runs as a self-contained local server — no install required.
Written for Schmendrizzle's Twitch Stream.
## Pages