Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Dec 29, 2023
1 parent e4ea514 commit a607a49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 34 deletions.
37 changes: 5 additions & 32 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: "Release Build"

on:
workflow_dispatch:
push:
tags:
- "v*"
branches:
- main
- dev
- feat/prerelease

jobs:
release:
Expand All @@ -16,36 +19,6 @@ jobs:
path: |
node_modules
key: npm-${{ hashFiles('package-lock.json') }}
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "zulu"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Set up Flutter
run: flutter pub get
- name: Generate files with Builder
run: dart run build_runner build --delete-conflicting-outputs
- name: Build with Flutter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
run: flutter build apk
- name: Sign APK
id: sign_apk
uses: ilharp/sign-android-release@v1
with:
releaseDir: build/app/outputs/apk/release
signingKey: ${{ secrets.SIGNING_KEYSTORE }}
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
- name: Add version to APK
run: mv ${{steps.sign_apk.outputs.signedFile}} revanced-manager.apk
- name: Setup semantic-release
run: npm install
- name: Release
Expand Down
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"branches": [
"main",
{
"name": "dev",
"name": "feat/prerelease",
"prerelease": true
}
],
Expand Down Expand Up @@ -35,7 +35,7 @@
{
"assets": [
{
"path": "build/app/outputs/apk/release/*.apk"
"path": "build/app/outputs/apk/debug/*.apk"
}
],
successComment: false
Expand Down
Binary file added build/app/outputs/apk/debug/app-debug.apk
Binary file not shown.

0 comments on commit a607a49

Please sign in to comment.