Skip to content

Commit

Permalink
build: include secret during build
Browse files Browse the repository at this point in the history
  • Loading branch information
GioPan04 committed May 9, 2024
1 parent bb04ae6 commit cf72589
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .env.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"WAKABOARD_CLIENT_SECRET": "waka_sec_..."
}
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,33 @@ permissions:

jobs:
release:
name: 'Build and publish to GitHub'
name: "Build and publish to GitHub"
runs-on: ubuntu-latest
steps:
- name: 'Checkout the source code'
- name: "Checkout the source code"
uses: actions/checkout@v3
- name: 'Setup Java 12'
- name: "Setup Java 12"
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
cache: 'gradle'
- name: 'Setup Flutter 3.x'
distribution: "zulu"
java-version: "11"
cache: "gradle"
- name: "Setup Flutter 3.x"
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.x'
channel: "stable"
flutter-version: "3.x"
cache: true
- name: Set up Android SDK
if: ${{ env.ACT }}
uses: android-actions/setup-android@v2
- name: 'Get dependencies'
- name: "Get dependencies"
run: flutter pub get
- name: 'Build'
- name: "Build"
run: |
dart run build_runner build --delete-conflicting-outputs
flutter build apk --split-per-abi
flutter build apk --split-per-abi --dart-define WAKABOARD_CLIENT_SECRET=${WAKABOARD_CLIENT_SECRET}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: build/app/outputs/apk/release/app-*-release.apk
files: build/app/outputs/apk/release/app-*-release.apk
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release

.env.json

0 comments on commit cf72589

Please sign in to comment.