Compare commits

...

10 commits

Author SHA1 Message Date
dd94016e87 Move release workflow to Forgejo Actions
Use the Forgejo release API via curl instead of the GitHub-only
create-release/upload-release-asset actions, and pick the APK with
the highest version number.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:02:52 +01:00
GitHub Actions
1e013142f8 Add release APK v1.3.4.0 2026-10-08 11:48:40 +00:00
GitHub Actions
a9d316f435 Add release APK v1.3.2.0 2026-10-07 21:44:32 +00:00
GitHub Actions
5ee2c453f7 Add release APK v1.3.1.0 2026-10-07 20:10:04 +00:00
GitHub Actions
5bfbc735de Add release APK v1.3.0.0 2026-10-06 16:06:31 +00:00
GitHub Actions
7d4fda4ffd Add release APK v1.2.2.0 2025-11-05 18:57:20 +00:00
GitHub Actions
0a2e051815 Add release APK v1.2.0.0 2025-10-31 20:30:55 +00:00
GitHub Actions
e6b125e2b9 Add release APK v1.0.3.2 2025-09-14 18:36:19 +00:00
GitHub Actions
1b7bdac64a Add release APK v1.0.3.1 2025-08-27 07:31:07 +00:00
GitHub Actions
7695c5255f Add release APK v1.0.3.0 2025-08-03 09:12:13 +00:00
11 changed files with 51 additions and 51 deletions

View file

@ -0,0 +1,51 @@
name: Create Release
on:
push:
paths:
- "releases/*.apk"
jobs:
create-release:
runs-on: ubuntu-latest
steps:
# Checkout repository
- name: Checkout Repository
uses: https://data.forgejo.org/actions/checkout@v4
# Get latest APK file (highest version number)
- name: Find Latest APK
run: |
LATEST_APK=$(ls releases/*.apk | sort -V | tail -n 1)
APK_NAME=$(basename "$LATEST_APK")
VERSION=$(echo "$APK_NAME" | grep -oP '\d+\.\d+\.\d+\.\d+')
echo "LATEST_APK=$LATEST_APK" >> $GITHUB_ENV
echo "APK_NAME=$APK_NAME" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV
# Create Forgejo Release and upload APK
- name: Create Release and Upload APK
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
API: ${{ github.server_url }}/api/v1/repos/${{ github.repository }}
SHA: ${{ github.sha }}
run: |
BODY=$(node -e 'console.log(JSON.stringify({
tag_name: "v" + process.env.VERSION,
target_commitish: process.env.SHA,
name: "Release v" + process.env.VERSION,
body: "This release contains the latest APK version: **v" + process.env.VERSION + "**",
draft: false,
prerelease: false
}))')
RELEASE=$(curl -sS --fail-with-body -X POST "$API/releases" \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/json" \
-d "$BODY")
RELEASE_ID=$(echo "$RELEASE" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>console.log(JSON.parse(s).id))')
curl -sS --fail-with-body -X POST "$API/releases/$RELEASE_ID/assets?name=$APK_NAME" \
-H "Authorization: token $TOKEN" \
-F "attachment=@$LATEST_APK;type=application/vnd.android.package-archive"

View file

@ -1,51 +0,0 @@
name: Create Release
on:
push:
paths:
- "releases/*.apk"
jobs:
create-release:
runs-on: ubuntu-latest
steps:
# Checkout repository
- name: Checkout Repository
uses: actions/checkout@v4
# Get latest APK file
- name: Find Latest APK
id: find_apk
run: |
LATEST_APK=$(ls -t releases/*.apk | head -n 1)
APK_NAME=$(basename "$LATEST_APK")
VERSION=$(echo "$APK_NAME" | grep -oP '\d+\.\d+\.\d+\.\d+')
echo "LATEST_APK=$LATEST_APK" >> $GITHUB_ENV
echo "APK_NAME=$APK_NAME" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV
# Create GitHub Release
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.VERSION }}
release_name: Release v${{ env.VERSION }}
body: |
This release contains the latest APK version: **v${{ env.VERSION }}**
draft: false
prerelease: false
# Upload APK to GitHub Release
- name: Upload APK to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ env.LATEST_APK }}
asset_name: ${{ env.APK_NAME }}
asset_content_type: application/vnd.android.package-archive

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.