|
3 | 3 | push:
|
4 | 4 | branches: main
|
5 | 5 | jobs:
|
6 |
| - # build_android: |
7 |
| - # runs-on: ubuntu-latest |
8 |
| - # steps: |
9 |
| - # - name: Cloing repository |
10 |
| - # uses: actions/checkout@v4 |
11 |
| - # - name: Setup Flutter |
12 |
| - # uses: subosito/flutter-action@v2 |
13 |
| - # with: |
14 |
| - # flutter-version: 3.24.1 |
15 |
| - # - run: flutter pub get |
16 |
| - # - run: flutter build apk --split-per-abi |
17 | 6 |
|
18 |
| - # - name: Upload APK to Discord |
19 |
| - # run: | |
20 |
| - # curl -F "payload_json={\"content\": \"Android x86_64 ${{ github.sha}}\"}" \ |
21 |
| - # -F "file=@build/app/outputs/flutter-apk/app-x86_64-release.apk" \ |
22 |
| - # ${{ secrets.DISCORD_WEBHOOK_URL }} |
23 |
| - |
24 |
| - # build_windows: |
25 |
| - # runs-on: windows-latest |
26 |
| - # steps: |
27 |
| - # - name: Cloing repository |
28 |
| - # uses: actions/checkout@v4 |
29 |
| - # - name: Setup Flutter |
30 |
| - # uses: subosito/flutter-action@v2 |
31 |
| - # with: |
32 |
| - # flutter-version: 3.24.1 |
33 |
| - # - run: flutter pub get |
34 |
| - # - run: flutter build windows |
35 |
| - # - name: Archive App |
36 |
| - # uses: thedoctor0/zip-release@master |
37 |
| - # with: |
38 |
| - # type: 'zip' |
39 |
| - # filename: Dantotsu-${{github.sha}}-windows.zip |
40 |
| - # directory: build\windows\x64\runner\Release |
41 |
| - # - name: Upload Windows ZIP to Discord |
42 |
| - # shell: pwsh |
43 |
| - # run: ./scripts/upload-to-discord.ps1 -webhookUrl ${{ secrets.DISCORD_WEBHOOK_URL }} -filePath build\windows\x64\runner\Release\Dantotsu-${{github.sha}}-windows.zip |
44 | 7 | build_linux:
|
45 | 8 | runs-on: ubuntu-latest
|
46 | 9 | permissions:
|
@@ -88,21 +51,17 @@ jobs:
|
88 | 51 | continue-on-error: true
|
89 | 52 | - name: Save Current SHA for Next Run
|
90 | 53 | run: echo ${{ github.sha }} > last_sha.txt
|
91 |
| - # - name: Setup Flutter |
92 |
| - # uses: subosito/flutter-action@v2 |
93 |
| - # with: |
94 |
| - # flutter-version: 3.24.1 |
95 |
| - # - run: | |
96 |
| - # sudo apt-get update -y |
97 |
| - # sudo apt-get install -y ninja-build libgtk-3-dev |
98 |
| - # - run: flutter pub get |
99 |
| - # - run: flutter build linux |
100 |
| - # - name: Archive app |
101 |
| - # uses: thedoctor0/zip-release@master |
102 |
| - # with: |
103 |
| - # type: 'zip' |
104 |
| - # filename: Dantotsu-${{github.sha}}-linux.zip |
105 |
| - # directory: build/linux/x64/release/bundle |
| 54 | + |
| 55 | + # checking if to ping or not |
| 56 | + |
| 57 | + - name: Check for noPing |
| 58 | + id: check_noping |
| 59 | + run: | |
| 60 | + if [[ "${{ github.event.head_commit.message }}" == *"[noPing]"* ]]; then |
| 61 | + echo "ping_variable=noping" >> $GITHUB_ENV |
| 62 | + else |
| 63 | + echo "ping_variable=<@&1298926901833895986>" >> $GITHUB_ENV |
| 64 | + fi |
106 | 65 | - name: Upload APK to Discord and Telegram
|
107 | 66 | shell: bash
|
108 | 67 | run: |
|
@@ -250,7 +209,7 @@ jobs:
|
250 | 209 | --arg thumbnail_url "$thumbnail_url" \
|
251 | 210 | --argjson embed_color "$embed_color" \
|
252 | 211 | '{
|
253 |
| - "content": "<@&1298926901833895986>", |
| 212 | + "content": "${{env.ping_variable}}", |
254 | 213 | "embeds": [
|
255 | 214 | {
|
256 | 215 | "title": "New Alpha-Build dropped 🔥",
|
|
0 commit comments