Skip to content

Commit add3b56

Browse files
committed
ci: update release workflow
1 parent 39b9d30 commit add3b56

File tree

2 files changed

+10
-24
lines changed

2 files changed

+10
-24
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
- php: '8.1'
2222
coverage: true
2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2525

2626
- name: Get Composer Cache Directory
2727
id: composer-cache
2828
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
2929

30-
- uses: actions/cache@v2
30+
- uses: actions/cache@v3
3131
with:
3232
path: ${{ steps.composer-cache.outputs.dir }}
3333
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Install prerequisites
4646
run: |
47-
wget -O box.phar https://github.com/humbug/box/releases/download/3.13.0/box.phar
47+
wget -O box.phar https://github.com/humbug/box/releases/download/4.0.2/box.phar
4848
echo "BOX_BIN=$(pwd)/box.phar" >> $GITHUB_ENV
4949
sudo chown -R $(whoami):$(whoami) .
5050
@@ -76,7 +76,7 @@ jobs:
7676
run: vendor/bin/phpstan analyse --ansi
7777

7878
- name: Run e2e tests
79-
if: startsWith(matrix.php, '8.')
79+
if: startsWith(matrix.php, '8.1')
8080
run: bin/compile
8181

8282
- name: Upload coverage results to Coveralls

.github/workflows/release.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
upload_url: ${{ steps.step_upload_url.outputs.upload_url }}
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
- name: Setup PHP with extensions
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.0'
21+
php-version: '8.1'
2222
extensions: json
2323
ini-values: memory_limit=-1
2424
tools: composer
@@ -27,30 +27,16 @@ jobs:
2727
run: composer install --prefer-dist --no-interaction --no-progress --ansi
2828

2929
- name: Download box.phar
30-
run: wget -O box.phar https://github.com/humbug/box/releases/download/3.13.0/box.phar
30+
run: wget -O box.phar https://github.com/humbug/box/releases/download/4.0.2/box.phar
3131

3232
- name: Compile project
3333
run: php ./box.phar compile
3434

3535
- name: Create Release
36-
id: create_release
37-
uses: actions/create-release@v1
38-
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
uses: softprops/action-gh-release@v1
4037
with:
41-
tag_name: ${{ github.ref }}
42-
release_name: Release ${{ github.ref }}
38+
name: Release ${{ github.ref }}
4339
body: ''
4440
draft: false
4541
prerelease: false
46-
47-
- name: Upload Release Asset
48-
id: upload-release-asset
49-
uses: actions/upload-release-asset@v1
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
with:
53-
upload_url: ${{ steps.create_release.outputs.upload_url }}
54-
asset_path: ./schema.phar
55-
asset_name: schema.phar
56-
asset_content_type: application/x-php
42+
files: schema.phar

0 commit comments

Comments
 (0)