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 cb841e6 commit 8a882b6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
34 changes: 24 additions & 10 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ jobs:
name: android_${{ env.VERSION }}.apk
path: build/app/outputs/flutter-apk/app-release.apk

- name: Release
uses: ncipollo/[email protected]
with:
artifacts: "build/app/outputs/flutter-apk/app-release.apk"
tag: ${{ env.VERSION }}
token: ${{ secrets.YOUR_GITHUB_TOKEN }}

build_linux:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -79,9 +72,30 @@ jobs:
name: linux_x64_${{ env.VERSION }}.tar.gz
path: linux_x64_${{ env.VERSION }}.tar.gz

- name: Release Linux
release:
runs-on: ubuntu-latest
needs: [build_android, build_linux]

steps:
- uses: actions/checkout@v3

- name: Download Android Build
uses: actions/download-artifact@v3
with:
name: android_${{ env.VERSION }}.apk
path: .

- name: Download Linux Build
uses: actions/download-artifact@v3
with:
name: linux_build_${{ env.VERSION }}.tar.gz
path: .

- name: Create Release
uses: ncipollo/[email protected]
with:
artifacts: "linux_x64_${{ env.VERSION }}.tar.gz"
artifacts: |
android_${{ env.VERSION }}.apk
linux_build_${{ env.VERSION }}.tar.gz
tag: ${{ env.VERSION }}
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: music_tools_flutter
description: A tool to edit tag of audio files, based on flutter.
publish_to: 'none'

version: 1.2.5
version: 1.2.6

environment:
sdk: '>=3.3.0-97.0.dev <4.0.0'
Expand Down

0 comments on commit 8a882b6

Please sign in to comment.