Skip to content

Commit

Permalink
ci: add version
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Nov 12, 2023
1 parent 7efec79 commit 2286bc8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
release:
types: [ released ]

workflow_dispatch:

env:
APP_NAME: Waiter

Expand All @@ -21,7 +19,7 @@ jobs:
- name: Build
run: |
flutter config --enable-windows-desktop
flutter build windows
flutter build windows --build-name=$GITHUB_REF_NAME --build-number=$GITHUB_RUN_NUMBER
Compress-Archive -Path .\build\windows\runner\Release\* -DestinationPath ${{ env.APP_NAME }}-windows.zip
- name: Release
Expand All @@ -47,7 +45,7 @@ jobs:
- name: Build
run: |
flutter pub get
flutter build web
flutter build web --build-name=$GITHUB_REF_NAME --build-number=$GITHUB_RUN_NUMBER
tar -zcvf ${{ env.APP_NAME }}-web.tar.gz ./build/web/*
- name: Release
Expand Down Expand Up @@ -77,7 +75,7 @@ jobs:
- name: Build
run: |
flutter pub get
flutter build apk
flutter build apk --build-name=$GITHUB_REF_NAME --build-number=$GITHUB_RUN_NUMBER
mv ./build/app/outputs/flutter-apk/app-release.apk ${{ env.APP_NAME }}.apk
mv ./build/app/outputs/flutter-apk/app-release.apk.sha1 ${{ env.APP_NAME }}.apk.sha1
Expand Down

0 comments on commit 2286bc8

Please sign in to comment.