Skip to content

Commit b090f4f

Browse files
committed
ci: update release action script
1 parent deaa311 commit b090f4f

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ on:
77

88
jobs:
99
release:
10-
name: Test on php ${{ matrix.php}}
10+
name: Release new version
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 10
1313
strategy:
1414
fail-fast: true
15-
matrix:
16-
php: [8.0]
1715

1816
steps:
1917
- name: Checkout
@@ -25,28 +23,6 @@ jobs:
2523
echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
2624
echo "RELEASE_NAME=$GITHUB_WORKFLOW" >> $GITHUB_ENV
2725
28-
# usage refer https://github.com/shivammathur/setup-php
29-
- name: Setup PHP
30-
timeout-minutes: 5
31-
uses: shivammathur/setup-php@v2
32-
with:
33-
php-version: ${{ matrix.php}}
34-
tools: pecl, php-cs-fixer, phpunit
35-
extensions: mbstring, dom, fileinfo, mysql, openssl # , swoole-4.4.19 #optional, setup extensions
36-
ini-values: post_max_size=56M, short_open_tag=On #optional, setup php.ini configuration
37-
coverage: none #optional, setup coverage driver: xdebug, none
38-
39-
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
40-
# Docs: https://getcomposer.org/doc/articles/scripts.md
41-
42-
- name: Install dependencies # eg: v1.0.3
43-
run: |
44-
echo $RELEASE_TAG
45-
echo $RELEASE_NAME
46-
tag1=${GITHUB_REF#refs/*/}
47-
echo "release tag: ${tag1}"
48-
composer update --no-progress
49-
5026
- name: Generate changelog
5127
run: |
5228
curl https://github.com/gookit/gitw/releases/latest/download/chlog-linux-amd64 -L -o /usr/local/bin/chlog

0 commit comments

Comments
 (0)