revanced-manager/.github/workflows/release.yml

63 lines
1.5 KiB
YAML
Raw Normal View History

name: Release
on:
2024-01-22 09:29:57 +01:00
workflow_dispatch:
push:
2024-01-22 09:29:57 +01:00
branches:
- main
- dev
paths:
- ".github/workflows/release.yml"
- "android/**"
- "assets/**"
- "lib/**"
- "pubspec.yaml"
2024-02-01 02:57:15 +01:00
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
2024-01-22 09:29:57 +01:00
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: 'npm'
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: 3.24.x
2024-01-22 09:29:57 +01:00
- name: Install dependencies
run: npm ci
2024-01-22 09:29:57 +01:00
- name: Get dependencies
run: flutter pub get
- name: Generate translations
run: dart run slang
- name: Generate code files
2023-11-11 11:14:54 +01:00
run: dart run build_runner build --delete-conflicting-outputs
2024-01-22 09:29:57 +01:00
- name: Release
2024-02-01 02:57:15 +01:00
env:
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
2024-02-01 02:57:15 +01:00
signingKey: "keystore.jks"
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
2024-02-01 02:57:15 +01:00
run: |
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > android/app/keystore.jks
npx semantic-release