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:
- 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