Skip to content

Commit 2b43662

Browse files
committed
use repo name variable for artifacts
1 parent 19c45e9 commit 2b43662

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,17 @@ jobs:
212212
ln -s ../Runner.app
213213
cd ..
214214
zip -r app-release.ipa Payload
215-
mv app-release.ipa flutter_boolean_template-${{ env.BRANCH_NAME }}-ios.ipa
215+
mv app-release.ipa ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-ios.ipa
216216
- name: Upload IPA
217217
uses: actions/upload-artifact@v4
218218
with:
219-
name: flutter_boolean_template-${{ env.BRANCH_NAME }}-ios
220-
path: build/ios/iphoneos/flutter_boolean_template-*.ipa
219+
name: ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-ios
220+
path: build/ios/iphoneos/${{ github.event.repository.name }}-*.ipa
221221
- name: Release IPA
222222
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
223223
uses: ncipollo/release-action@v1
224224
with:
225-
artifacts: build/ios/iphoneos/flutter_boolean_template-*.ipa
225+
artifacts: build/ios/iphoneos/${{ github.event.repository.name }}-*.ipa
226226
allowUpdates: true
227227
omitBodyDuringUpdate: true
228228

@@ -310,16 +310,16 @@ jobs:
310310
# ln -s ../Runner.app
311311
# cd ..
312312
# zip -r app-release.ipa Payload
313-
# mv app-release.ipa flutter_boolean_template-${{ env.BRANCH_NAME }}-ios.ipa
313+
# mv app-release.ipa ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-ios.ipa
314314
# - name: Upload IPA
315315
# uses: actions/upload-artifact@v4
316316
# with:
317-
# path: build/ios/iphoneos/flutter_boolean_template-*.ipa
317+
# path: build/ios/iphoneos/${{ github.event.repository.name }}-*.ipa
318318
# - name: Release IPA
319319
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
320320
# uses: ncipollo/release-action@v1
321321
# with:
322-
# artifacts: build/ios/iphoneos/flutter_boolean_template-*.ipa
322+
# artifacts: build/ios/iphoneos/${{ github.event.repository.name }}-*.ipa
323323
# allowUpdates: true
324324
# omitBodyDuringUpdate: true
325325

@@ -394,21 +394,21 @@ jobs:
394394
flutter pub get
395395
flutter build apk --release --split-per-abi --dart-define FLUTTER_APP_FLAVOR=${{ env.FLAVOR }}
396396
cd build/app/outputs/flutter-apk
397-
mv app-arm64-v8a-release.apk flutter_boolean_template-${{ env.BRANCH_NAME }}-android-arm64-v8a.apk
398-
mv app-armeabi-v7a-release.apk flutter_boolean_template-${{ env.BRANCH_NAME }}-android-armeabi-v7a.apk
399-
mv app-x86_64-release.apk flutter_boolean_template-${{ env.BRANCH_NAME }}-android-x86_64.apk
397+
mv app-arm64-v8a-release.apk ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-android-arm64-v8a.apk
398+
mv app-armeabi-v7a-release.apk ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-android-armeabi-v7a.apk
399+
mv app-x86_64-release.apk ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-android-x86_64.apk
400400
401401
- name: Upload Split APKs
402402
uses: actions/upload-artifact@v4
403403
with:
404-
name: flutter_boolean_template-${{ env.BRANCH_NAME }}-android-split
405-
path: build/app/outputs/flutter-apk/flutter_boolean_template-*.apk
404+
name: ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-android-split
405+
path: build/app/outputs/flutter-apk/${{ github.event.repository.name }}-*.apk
406406

407407
- name: Release Split APKs
408408
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
409409
uses: ncipollo/release-action@v1
410410
with:
411-
artifacts: build/app/outputs/flutter-apk/flutter_boolean_template-*.apk
411+
artifacts: build/app/outputs/flutter-apk/${{ github.event.repository.name }}-*.apk
412412
allowUpdates: true
413413
omitBodyDuringUpdate: true
414414

@@ -417,19 +417,19 @@ jobs:
417417
flutter pub get
418418
flutter build apk --release --dart-define FLUTTER_APP_FLAVOR=${{ env.FLAVOR }}
419419
cd build/app/outputs/flutter-apk
420-
mv app-release.apk flutter_boolean_template-${{ env.BRANCH_NAME }}-android-universal.apk
420+
mv app-release.apk ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-android-universal.apk
421421
422422
- name: Upload Universal APK
423423
uses: actions/upload-artifact@v4
424424
with:
425-
name: flutter_boolean_template-${{ env.BRANCH_NAME }}-android-universal
426-
path: build/app/outputs/flutter-apk/flutter_boolean_template-${{ env.BRANCH_NAME }}-android-universal.apk
425+
name: ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-android-universal
426+
path: build/app/outputs/flutter-apk/${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-android-universal.apk
427427

428428
- name: Release Universal APKs
429429
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
430430
uses: ncipollo/release-action@v1
431431
with:
432-
artifacts: build/app/outputs/flutter-apk/flutter_boolean_template-${{ env.BRANCH_NAME }}-android-universal.apk
432+
artifacts: build/app/outputs/flutter-apk/${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-android-universal.apk
433433
allowUpdates: true
434434
omitBodyDuringUpdate: true
435435

@@ -438,19 +438,19 @@ jobs:
438438
flutter pub get
439439
flutter build appbundle --release --dart-define FLUTTER_APP_FLAVOR=${{ env.FLAVOR }}
440440
cd build/app/outputs/bundle/release
441-
mv app-release.aab flutter_boolean_template-${{ env.BRANCH_NAME }}-android-appbundle.aab
441+
mv app-release.aab ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-android-appbundle.aab
442442
443443
- name: Upload Android App Bundle
444444
uses: actions/upload-artifact@v4
445445
with:
446-
name: flutter_boolean_template-${{ env.BRANCH_NAME }}-android-appbundle
446+
name: ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-android-appbundle
447447
path: build/app/outputs/bundle/release/*.aab
448448

449449
- name: Release Android App Bundle
450450
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
451451
uses: ncipollo/release-action@v1
452452
with:
453-
artifacts: build/app/outputs/bundle/release/flutter_boolean_template-*.aab
453+
artifacts: build/app/outputs/bundle/release/${{ github.event.repository.name }}-*.aab
454454
allowUpdates: true
455455
omitBodyDuringUpdate: true
456456

@@ -527,18 +527,18 @@ jobs:
527527
run: |
528528
dart run msix:create --build-windows false
529529
cd build\windows\x64\runner\Release
530-
mv flutter_boolean_template.msix flutter_boolean_template-${{ env.BRANCH_NAME }}-windows.msix
530+
mv ${{ github.event.repository.name }}.msix ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-windows.msix
531531
- name: Upload MSIX
532532
uses: actions/upload-artifact@v4
533533
with:
534-
name: flutter_boolean_template-${{ env.BRANCH_NAME }}-windows
534+
name: ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-windows
535535
path: build/windows/x64/runner/Release/*.msix
536536

537537
- name: Release MSIX
538538
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
539539
uses: ncipollo/release-action@v1
540540
with:
541-
artifacts: build/windows/x64/runner/Release/flutter_boolean_template-*.msix
541+
artifacts: build/windows/x64/runner/Release/${{ github.event.repository.name }}-*.msix
542542
allowUpdates: true
543543
omitBodyDuringUpdate: true
544544

@@ -615,22 +615,22 @@ jobs:
615615
chmod a+x appimagetool-x86_64.AppImage
616616
mv appimagetool-x86_64.AppImage appimagetool
617617
618-
mv build/linux/x64/release/bundle/{flutter_boolean_template,AppRun}
618+
mv build/linux/x64/release/bundle/{${{ github.event.repository.name }},AppRun}
619619
cp linux/appimage/* build/linux/x64/release/bundle/
620620
./appimagetool build/linux/x64/release/bundle/
621-
mv *.AppImage build/flutter_boolean_template-${{ env.BRANCH_NAME }}-linux.AppImage
621+
mv *.AppImage build/${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-linux.AppImage
622622
623623
- name: Upload AppImage
624624
uses: actions/upload-artifact@v4
625625
with:
626-
name: flutter_boolean_template-${{ env.BRANCH_NAME }}-linux-appimage
627-
path: build/flutter_boolean_template-*.AppImage
626+
name: ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-linux-appimage
627+
path: build/${{ github.event.repository.name }}-*.AppImage
628628

629629
- name: Release AppImage
630630
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
631631
uses: ncipollo/release-action@v1
632632
with:
633-
artifacts: build/flutter_boolean_template-*.AppImage
633+
artifacts: build/${{ github.event.repository.name }}-*.AppImage
634634
allowUpdates: true
635635
omitBodyDuringUpdate: true
636636

@@ -707,19 +707,19 @@ jobs:
707707
retry_on: error
708708
command: |
709709
brew install create-dmg
710-
create-dmg --volname flutter_boolean_template-${{ env.BRANCH_NAME }}-macos --window-pos 200 120 --window-size 800 450 --icon-size 100 --app-drop-link 600 185 flutter_boolean_template-${{ env.BRANCH_NAME }}-macos.dmg build/macos/Build/Products/Release/flutter_boolean_template.app
710+
create-dmg --volname ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-macos --window-pos 200 120 --window-size 800 450 --icon-size 100 --app-drop-link 600 185 ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-macos.dmg build/macos/Build/Products/Release/${{ github.event.repository.name }}.app
711711
712712
- name: Upload DMG
713713
uses: actions/upload-artifact@v4
714714
with:
715-
name: flutter_boolean_template-${{ env.BRANCH_NAME }}-macos-dmg
716-
path: "/Users/runner/work/flutter_boolean_template/flutter_boolean_template/*.dmg"
715+
name: ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-macos-dmg
716+
path: "/Users/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}/*.dmg"
717717

718718
- name: Release DMG
719719
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
720720
uses: ncipollo/release-action@v1
721721
with:
722-
artifacts: /Users/runner/work/flutter_boolean_template/flutter_boolean_template/flutter_boolean_template-*.dmg
722+
artifacts: /Users/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}/${{ github.event.repository.name }}-*.dmg
723723
allowUpdates: true
724724
omitBodyDuringUpdate: true
725725

@@ -789,7 +789,7 @@ jobs:
789789
- name: Upload Artifact
790790
uses: actions/upload-artifact@v4
791791
with:
792-
name: flutter_boolean_template-${{ env.BRANCH_NAME }}-web
792+
name: ${{ github.event.repository.name }}-${{ env.BRANCH_NAME }}-web
793793
path: build/web
794794

795795
deploy_web:

0 commit comments

Comments
 (0)