Update gui-release.yml #3
Workflow file for this run
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: Gui-release | |
on: | |
push: | |
tags: | |
- 'gui-*' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
release: | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
artifact_name: babylonia-terminal-${{ github.ref }}.tar.gz | |
asset_name: babylonia-terminal-${{ github.ref }}.tar.gz | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: flutter-actions/setup-flutter@v3 | |
- name: Setup environment | |
run: | | |
cargo install rinf | |
cd babylonia_terminal_launcher/ | |
flutter create --platforms=linux . | |
sudo apt update | |
sudo apt install ninja-build libgtk-3-0 libblkid1 liblzma5 | |
- name: Compile | |
run: | | |
cd babylonia_terminal_launcher/ | |
flutter pub get | |
rinf message | |
flutter build linux --release | |
- name: Create release | |
run: | | |
tar -zcvf babylonia-terminal-${{ github.ref }}.tar.gz babylonia_terminal_launcher/build/linux/x64/release/bundle | |
- name: Upload binary to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: babylonia_terminal_launcher/build/linux/x64/release/babylonia-terminal-${{ github.ref }}.tar.gz | |
asset_name: babylonia-terminal-${{ github.ref }}.tar.gz | |
tag: ${{ github.ref }} |