Skip to content

Commit

Permalink
Fix build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Dec 30, 2023
1 parent e3c323c commit df87fae
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,21 @@ jobs:
with:
python-version: '3.8'
- name: Preprocess
if: ${{ ( github.event.pull_request.head.sha == "" && github.event.merge_group.head_sha == "" ) && ( secrets.SECRET_SALT && secrets.SECRET_WSALT ) }}
run: |
cd lib/server
wget -q ${{ secrets.SECRET_SALT }}
wget -q ${{ secrets.SECRET_WSALT }}
cd ../..
python3 preprocess-ios.py
- name: Preprocess
if: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }}
run: |
cd lib/server
echo 'String getValid(String vToken) { return vToken; }' >> salt.dart
cp salt.dart wsalt.dart
cd ../..
python3 preprocess-ios.py
- name: Podfile
run: |
cd ios
Expand Down Expand Up @@ -67,12 +76,21 @@ jobs:
with:
python-version: '3.8'
- name: Preprocess
if: ${{ ( github.event.pull_request.head.sha == "" && github.event.merge_group.head_sha == "" ) && ( secrets.SECRET_SALT && secrets.SECRET_WSALT ) }}
run: |
cd lib/server
wget -q ${{ secrets.SECRET_SALT }}
wget -q ${{ secrets.SECRET_WSALT }}
cd ../..
python3 preprocess-android.py
- name: Preprocess
if: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }}
run: |
cd lib/server
echo 'String getValid(String vToken) { return vToken; }' >> salt.dart
cp salt.dart wsalt.dart
cd ../..
python3 preprocess-android.py
- name: Build
run: |
flutter clean
Expand Down

0 comments on commit df87fae

Please sign in to comment.