Release Linux #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Linux | |
on: | |
# 手动触发 | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
steps: | |
# 使用本项目 | |
- uses: actions/checkout@v3 | |
#设置flutter | |
- uses: subosito/flutter-action@v2.12.0 | |
with: | |
# The Flutter version to make available on the path | |
flutter-version: 3.13.9 | |
# The Flutter build release channel | |
channel: # optional, default is stable | |
# Get flutter dependencies. | |
- run: flutter pub get | |
# Build apk.打包各架构版本 | |
- run: flutter build linux --release | |
# Upload generated apk to the artifacts. | |
- uses: actions/upload-artifact@v3.1.3 | |
with: | |
# Artifact name | |
name: release-linux.tar.gz | |
# 导出文件夹 | |
path: build/linux/runner/Release/ | |
# The desired behavior if no files are found using the provided path. | |