mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
3d8318da14
Signed-off-by: validcube <pun.butrach@gmail.com>
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
name: Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
paths:
|
|
- ".github/workflows/release.yml"
|
|
- "android/**"
|
|
- "assets/**"
|
|
- "lib/**"
|
|
- "pubspec.yaml"
|
|
|
|
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
|
|
|
|
- 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
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Get dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Generate translations
|
|
run: dart run slang
|
|
|
|
- name: Generate code files
|
|
run: dart run build_runner build --delete-conflicting-outputs
|
|
|
|
- name: Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
|
|
signingKey: "keystore.jks"
|
|
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
|
|
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
|
|
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
|
|
run: |
|
|
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > android/app/keystore.jks
|
|
npx semantic-release
|