Skip to content

Commit f708f63

Browse files
committed
Fixed release workflow
1 parent 516b292 commit f708f63

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,30 @@ jobs:
4343
# Choose a suitable PHP version to build PHAR
4444
composer config platform.php 7.0.33
4545
46-
- name: Setup Composer Token
46+
- name: Get Composer Cache Directory
47+
id: composer-cache
48+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
49+
50+
- name: Setup Composer Cache
51+
uses: actions/cache@v1
52+
with:
53+
path: ${{ steps.composer-cache.outputs.dir }}
54+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
55+
restore-keys:
56+
${{ runner.os }}-composer-${{ env.cache-name }}-
57+
${{ runner.os }}-composer-
58+
${{ runner.os }}-
59+
60+
- name: Setup GitHub Token
4761
run: |
4862
# To increase the GitHub rate limit we're use GitHub authentication
4963
if [ -n "${{ secrets.COMPOSER_TOKEN }}" ]; then
5064
composer config github-oauth.github.com "${{ secrets.COMPOSER_TOKEN }}"
5165
fi
5266
67+
- name: Install project dependencies
68+
run: composer install --prefer-dist --no-interaction --no-ansi --no-progress --no-suggest
69+
5370
- name: Install Box
5471
run: |
5572
wget \

0 commit comments

Comments
 (0)