From 13a9a578cc06bc8c299614d5d0fe634cf76e2ad4 Mon Sep 17 00:00:00 2001 From: ALEZ <38623465+ALEZ-DEV@users.noreply.github.com> Date: Tue, 11 Jun 2024 18:09:29 +0200 Subject: [PATCH] Create Gui-release.yml --- .github/workflows/Gui-release.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/Gui-release.yml diff --git a/.github/workflows/Gui-release.yml b/.github/workflows/Gui-release.yml new file mode 100644 index 0000000..cdf1913 --- /dev/null +++ b/.github/workflows/Gui-release.yml @@ -0,0 +1,35 @@ +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: Create release + run: | + cd babylonia_terminal_launcher + flutter build linux --release + cd build/linux/x64/release + tar -zcvf babylonia-terminal-${{ github.ref }}.tar.gz ./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 }}