From 20fe683bef06e66533264c00f6aa9d29b0e57c87 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Sat, 21 Sep 2024 10:08:34 +0200 Subject: [PATCH] Add Box installation step in release workflow Include Box version 4.6.2 as an environment variable and add a step to download and install Box. This ensures the Box tool is available in the release workflow for application compilation. --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7c6f02..0be7b2d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,8 @@ on: push: tags: - '*' +env: + BOX_VERSION: '4.6.2' jobs: build: @@ -32,6 +34,16 @@ jobs: - name: 'Install Project Dependencies' run: composer install --no-interaction --no-ansi --no-progress + - name: 'Install Box' + run: | + wget \ + "https://github.com/humbug/box/releases/download/${BOX_VERSION}/box.phar" \ + --quiet \ + -O ./box + + chmod +x ./box + sudo mv ./box /usr/local/bin + - name: 'Compile the application' run: | vendor/bin/castor repack --os=${{ matrix.system }} --app-name=beaver --app-version=${{ github.ref_name }}