Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 99a79d8df9 | |||
| 3affa455d0 |
@@ -1,4 +1,4 @@
|
||||
name: Build and Deploy
|
||||
name: Build and deploy the latest docker container
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -0,0 +1,37 @@
|
||||
name: Build and release the latest android apk
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
rolling-release-apk:
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build apk
|
||||
run: devenv shell build-android
|
||||
|
||||
- name: Move latest Tag
|
||||
run: |
|
||||
git config user.name "gitea-actions"
|
||||
git config user.email "gitea-actions@localhost"
|
||||
|
||||
# Forcefully creates/moves the 'latest' tag to the current commit
|
||||
git tag -f latest
|
||||
|
||||
# Force-pushes the updated tag back to your Gitea repository
|
||||
git push origin -f latest
|
||||
|
||||
- name: Update Gitea Release & Swap APK
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
env:
|
||||
NODE_OPTIONS: '--experimental-fetch'
|
||||
with:
|
||||
tag_name: latest # Explicitly target the tag we just moved
|
||||
name: 'Latest Development Build'
|
||||
body: 'This rolling release is automatically generated and always contains the newest code from the main branch.'
|
||||
files: build/app/build/outputs/apk/release/*.apk
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -0,0 +1,23 @@
|
||||
name: Build and release a versioned android apk
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release-apk:
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build apk
|
||||
run: devenv shell build-android
|
||||
|
||||
- name: Create Gitea Release & Upload APK
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
env:
|
||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||
with:
|
||||
files: build/app/build/outputs/apk/release/*.apk
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -67,9 +67,5 @@
|
||||
|
||||
flutter build apk --release
|
||||
'';
|
||||
|
||||
deploy-android.exec = ''
|
||||
echo "TBD"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user