Skip to content

Commit

Permalink
Add Box installation step in release workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Spomky committed Sep 21, 2024
1 parent 1c56c93 commit 20fe683
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- '*'
env:
BOX_VERSION: '4.6.2'

jobs:
build:
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 20fe683

Please sign in to comment.