build(Needs bump)!: Update to ReVanced Patcher v22 (#385) #795
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| release: | |
| name: Release | |
| permissions: | |
| contents: write | |
| id-token: write | |
| attestations: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Cache Gradle | |
| uses: burrunan/gradle-cache-action@v3 | |
| - name: Build | |
| env: | |
| ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ env.GITHUB_ACTOR }} | |
| ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }} | |
| run: ./gradlew build clean | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "lts/*" | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Import GPG key | |
| uses: crazy-max/ghaction-import-gpg@v6 | |
| with: | |
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
| fingerprint: ${{ vars.GPG_FINGERPRINT }} | |
| - name: Release | |
| uses: cycjimmy/semantic-release-action@v5 | |
| id: release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ env.GITHUB_ACTOR }} | |
| ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Attest | |
| if: steps.release.outputs.new_release_published == 'true' | |
| uses: actions/attest-build-provenance@v3 | |
| with: | |
| subject-name: 'ReVanced CLI ${{ steps.release.outputs.new_release_git_tag }}' | |
| subject-path: build/libs/revanced-cli*.jar |