|
18 | 18 | name: Build |
19 | 19 | runs-on: ubuntu-latest |
20 | 20 |
|
21 | | - |
22 | | - |
23 | | - |
24 | 21 | steps: |
25 | 22 | - name: Free Disk Space |
26 | 23 | uses: jlumbroso/free-disk-space@main |
|
32 | 29 | large-packages: true |
33 | 30 | docker-images: true |
34 | 31 | swap-storage: true |
35 | | - |
36 | 32 | - uses: actions/checkout@v2 |
37 | 33 | - uses: actions/setup-java@v2 |
38 | 34 | with: |
|
41 | 37 | - uses: subosito/flutter-action@v1 |
42 | 38 | with: |
43 | 39 | flutter-version: '3.38.4' |
44 | | - - uses: finnp/create-file-action@master |
45 | | - env: |
46 | | - FILE_NAME: lib/common/config/ignoreConfig.dart |
47 | | - FILE_DATA: class NetConfig { static const CLIENT_ID = "${{ secrets.CLIENT_ID }}"; static const CLIENT_SECRET = "${{ secrets.CLIENT_SECRET }}";} |
| 40 | + - name: Create config file |
| 41 | + run: | |
| 42 | + echo 'class NetConfig { static const CLIENT_ID = "${{ secrets.CLIENT_ID }}"; static const CLIENT_SECRET = "${{ secrets.CLIENT_SECRET }}";}' > lib/common/config/ignoreConfig.dart |
48 | 43 | - run: flutter pub get |
49 | 44 | - run: flutter build apk --release --target-platform=android-arm64 --no-shrink |
50 | 45 |
|
|
63 | 58 | - uses: subosito/flutter-action@v1 |
64 | 59 | with: |
65 | 60 | flutter-version: '3.38.4' |
66 | | - - uses: finnp/create-file-action@master |
67 | | - env: |
68 | | - FILE_NAME: lib/common/config/ignoreConfig.dart |
69 | | - FILE_DATA: class NetConfig { static const CLIENT_ID = "${{ secrets.CLIENT_ID }}"; static const CLIENT_SECRET = "${{ secrets.CLIENT_SECRET }}";} |
| 61 | + - name: Create config file |
| 62 | + run: | |
| 63 | + echo 'class NetConfig { static const CLIENT_ID = "${{ secrets.CLIENT_ID }}"; static const CLIENT_SECRET = "${{ secrets.CLIENT_SECRET }}";}' > lib/common/config/ignoreConfig.dart |
70 | 64 | - run: flutter pub get |
71 | 65 | - run: flutter build apk --release --target-platform=android-arm64 --no-shrink |
72 | 66 | - name: Upload APK |
|
80 | 74 | if: startsWith(github.ref, 'refs/tags/') |
81 | 75 | runs-on: ubuntu-latest |
82 | 76 | steps: |
| 77 | + - name: Free Disk Space |
| 78 | + uses: jlumbroso/free-disk-space@main |
| 79 | + with: |
| 80 | + tool-cache: false |
| 81 | + android: false |
| 82 | + dotnet: true |
| 83 | + haskell: true |
| 84 | + large-packages: true |
| 85 | + docker-images: true |
| 86 | + swap-storage: true |
83 | 87 | - name: Download APK from build |
84 | 88 | uses: actions/download-artifact@v4 |
85 | 89 | with: |
|
0 commit comments