From aa6251558d7f1152e2743a0ba3e843f46f202b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:44:37 +0100 Subject: [PATCH] also added release workflow --- .github/workflows/release.yml | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8669b53 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,53 @@ +############################################## +# App information +############################################## +env: + app-name: grace + app-entry: src/cli.art + app-notes: auto +############################################## + +# > if there is no serious reason, better not +# change anything below this line! ;-) + +name: Release Arturo app + +on: + push: + tags: + - 'v*.*.*' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + Bundle: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest # Linux - amd64 + - macos-13 # macOS - amd64 + - macos-latest # macOS - arm64/M1 + - windows-latest # Windows - amd64 + steps: + - uses: actions/checkout@v4 + - uses: arturo-lang/bundler@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + entry: ${{ env.app-entry }} + target: ${{ env.app-name}} + release: 'true' + + Release: + runs-on: ubuntu-latest + if: ${{ always() }} + needs: Bundle + steps: + - uses: actions/checkout@v4 + - uses: arturo-lang/bundler-releases@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + name: ${{ env.app-name }} + description: ${{ env.app-notes }} \ No newline at end of file