From 11eeefc012a10430a4e9d0ad74de4a2ac2f1937d Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 9 Apr 2025 11:41:05 +0200 Subject: [PATCH] ci: Modernize workflows --- .github/workflows/release.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 969f1394..2fb00b91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,19 +6,13 @@ on: branches: - main - dev - paths: - - ".github/workflows/release.yml" - - "android/**" - - "assets/**" - - "lib/**" - - "pubspec.yaml" jobs: release: name: Release permissions: - id-token: write contents: write + id-token: write attestations: write runs-on: ubuntu-latest steps: @@ -40,6 +34,7 @@ jobs: uses: subosito/flutter-action@v2 with: channel: stable + cache: true - name: Install dependencies run: npm ci @@ -57,17 +52,15 @@ jobs: run: | echo "${{ secrets.KEYSTORE }}" | base64 --decode > "android/app/keystore.jks" - - name: Release + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} KEYSTORE_ENTRY_ALIAS: ${{ secrets.KEYSTORE_ENTRY_ALIAS }} KEYSTORE_ENTRY_PASSWORD: ${{ secrets.KEYSTORE_ENTRY_PASSWORD }} - run: | - npx semantic-release - - name: Generate artifact attestation - if: github.ref == 'refs/heads/main' - uses: actions/attest-build-provenance@v1 + - name: Attest + uses: actions/attest-build-provenance@v2 with: subject-path: build/app/outputs/apk/release/revanced-manager-*.apk