Skip to content

Commit

Permalink
更新自动构建文件
Browse files Browse the repository at this point in the history
  • Loading branch information
MCredbear committed Jan 4, 2025
1 parent 56d6026 commit 34611fa
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
run: |
VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Upload APK as artifact
uses: actions/upload-artifact@v3
with:
name: android_${{ env.VERSION }}.apk
path: build/app/outputs/flutter-apk/app-release.apk

- name: Release
uses: ncipollo/[email protected]
Expand Down Expand Up @@ -65,11 +71,17 @@ jobs:
- name: Compress Linux Build
run: |
tar -czvf linux_x64.tar.gz -C build/linux/x64/release/bundle .
tar -czvf linux_x64_${{ env.VERSION }}.tar.gz -C build/linux/x64/release/bundle .
- name: Upload bundle as artifact
uses: actions/upload-artifact@v3
with:
name: linux_x64_${{ env.VERSION }}.tar.gz
path: linux_x64_${{ env.VERSION }}.tar.gz

- name: Release Linux
uses: ncipollo/[email protected]
with:
artifacts: "linux_x64.tar.gz"
artifacts: "linux_x64_${{ env.VERSION }}.tar.gz"
tag: ${{ env.VERSION }}
token: ${{ secrets.YOUR_GITHUB_TOKEN }}

0 comments on commit 34611fa

Please sign in to comment.