ci: Modernize workflows

This commit is contained in:
oSumAtrIX 2025-04-09 11:41:05 +02:00 committed by GitHub
parent 783f313ed8
commit 11eeefc012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,19 +6,13 @@ on:
branches: branches:
- main - main
- dev - dev
paths:
- ".github/workflows/release.yml"
- "android/**"
- "assets/**"
- "lib/**"
- "pubspec.yaml"
jobs: jobs:
release: release:
name: Release name: Release
permissions: permissions:
id-token: write
contents: write contents: write
id-token: write
attestations: write attestations: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -40,6 +34,7 @@ jobs:
uses: subosito/flutter-action@v2 uses: subosito/flutter-action@v2
with: with:
channel: stable channel: stable
cache: true
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
@ -57,17 +52,15 @@ jobs:
run: | run: |
echo "${{ secrets.KEYSTORE }}" | base64 --decode > "android/app/keystore.jks" echo "${{ secrets.KEYSTORE }}" | base64 --decode > "android/app/keystore.jks"
- name: Release - name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEYSTORE_ENTRY_ALIAS: ${{ secrets.KEYSTORE_ENTRY_ALIAS }} KEYSTORE_ENTRY_ALIAS: ${{ secrets.KEYSTORE_ENTRY_ALIAS }}
KEYSTORE_ENTRY_PASSWORD: ${{ secrets.KEYSTORE_ENTRY_PASSWORD }} KEYSTORE_ENTRY_PASSWORD: ${{ secrets.KEYSTORE_ENTRY_PASSWORD }}
run: |
npx semantic-release
- name: Generate artifact attestation - name: Attest
if: github.ref == 'refs/heads/main' uses: actions/attest-build-provenance@v2
uses: actions/attest-build-provenance@v1
with: with:
subject-path: build/app/outputs/apk/release/revanced-manager-*.apk subject-path: build/app/outputs/apk/release/revanced-manager-*.apk