From bd0cf04d278c3b182cfeaa9a0e80e088d4e5fbb4 Mon Sep 17 00:00:00 2001 From: Damontecres Date: Fri, 21 Nov 2025 14:21:19 -0500 Subject: [PATCH] Update workflow --- .github/workflows/main.yml | 50 +++++++++----------------------------- 1 file changed, 12 insertions(+), 38 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1de1323c..b699c3d3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -79,47 +79,21 @@ jobs: echo "SHA256 checksums:" find app/build/outputs/apk -name '*.apk' -print0 | xargs -0 sha256sum - name: Delete ${{ env.TAG_NAME }} tag and release - uses: dev-drprasad/delete-tag-and-release@v1.1 - with: - tag_name: "${{ env.TAG_NAME }}" - delete_release: true - github_token: ${{ secrets.GITHUB_TOKEN }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release delete "${{ env.TAG_NAME }}" + echo '### `${{ env.BRANCH_NAME }}` development build - - name: Advance ${{ env.TAG_NAME }} tag - uses: actions/github-script@v8 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - await github.rest.git.createRef({ - owner: context.repo.owner, - repo: context.repo.repo, - ref: "refs/tags/${{ env.TAG_NAME }}", - sha: context.sha - }) + This pre-release tracks the development build of Wholphin from the `${{ env.BRANCH_NAME }}` unstable branch. - - name: Create GitHub release - uses: ncipollo/release-action@v1 - with: - allowUpdates: true - artifactErrorsFailBuild: true - artifacts: "${{ steps.apks.outputs.apks }}" - draft: false - generateReleaseNotes: false - makeLatest: false - name: "${{ env.VERSION_NAME }}" - prerelease: true - removeArtifacts: true - replacesArtifacts: true - updateOnlyUnreleased: true - tag: "${{ env.TAG_NAME }}" + See https://github.com/damontecres/Wholphin/releases/latest for the latest stable release. - body: | - ### `${{ env.BRANCH_NAME }}` development build + If you want to update to this version in-app, change Settings->Advanced->Update URL to https://api.github.com/repos/damontecres/Wholphin/releases/tags/${{ env.TAG_NAME }} (replace `latest` with `tags/${{ env.TAG_NAME }}`). - This pre-release tracks the development build of Wholphin from the `${{ env.BRANCH_NAME }}` unstable branch. + [See changes since `${{ env.LATEST_TAG }}`](https://github.com/damontecres/Wholphin/compare/${{ env.LATEST_TAG }}...${{ env.TAG_NAME }})' > ci_release_note.txt - See https://github.com/damontecres/Wholphin/releases/latest for the latest stable release. - If you want to update to this version in-app, change Settings->Advanced->Update URL to https://api.github.com/repos/damontecres/Wholphin/releases/tags/${{ env.TAG_NAME }} (replace `latest` with `tags/${{ env.TAG_NAME }}`). - - [See changes since `${{ env.LATEST_TAG }}`](https://github.com/damontecres/Wholphin/compare/${{ env.LATEST_TAG }}...${{ env.TAG_NAME }}) + gh release create "${{ env.TAG_NAME }}" \ + --latest=false --prerelease --title "${{ env.TAG_NAME }}" --target "${{ env.BRANCH_NAME }}" -F ci_release_note.txt \ + "app/build/outputs/apk/*.apk"