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/outputs/flutter-apk/*.apk token: ${{ secrets.GITHUB_TOKEN }}