cd: use build runner and remove script based gen secret

This commit is contained in:
Kingkor Roy Tirtho 2023-04-26 12:18:32 +06:00
parent 10f1c675d0
commit f1f60b9ad4
2 changed files with 5 additions and 6 deletions

View File

@ -61,7 +61,7 @@ jobs:
run: | run: |
flutter config --enable-windows-desktop flutter config --enable-windows-desktop
flutter pub get flutter pub get
dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}' flutter pub run build_runner build --delete-conflicting-outputs
- name: Build Windows Executable - name: Build Windows Executable
run: | run: |
@ -136,7 +136,7 @@ jobs:
run: | run: |
flutter config --enable-linux-desktop flutter config --enable-linux-desktop
flutter pub get flutter pub get
dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}' flutter pub run build_runner build --delete-conflicting-outputs
- name: Build Linux Packages - name: Build Linux Packages
run: | run: |
@ -200,10 +200,10 @@ jobs:
if: ${{ inputs.channel == 'nightly' }} if: ${{ inputs.channel == 'nightly' }}
run: echo '${{ secrets.DOTENV_NIGHTLY }}' > .env run: echo '${{ secrets.DOTENV_NIGHTLY }}' > .env
- name: Generate Secrets and Build apk - name: Generate Secrets
run: | run: |
flutter pub get flutter pub get
dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}' flutter pub run build_runner build --delete-conflicting-outputs
- name: Sign Apk - name: Sign Apk
run: | run: |
@ -253,7 +253,7 @@ jobs:
- name: Generate Secrets - name: Generate Secrets
run: | run: |
flutter pub get flutter pub get
dart bin/create-secrets.dart '${{ secrets.LYRICS_SECRET }}' '${{ secrets.SPOTIFY_SECRET }}' flutter pub run build_runner build --delete-conflicting-outputs
- name: Build Macos App - name: Build Macos App
run: | run: |

1
.gitignore vendored
View File

@ -68,7 +68,6 @@ installer.exe
*.env *.env
lib/collections/env.g.dart lib/collections/env.g.dart
help.txt help.txt
secrets.json
dist dist
appimage-build appimage-build