File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 description : ' Release message'
1111 required : false
1212
13+ env :
14+ TAG_VERSION : ${{ github.event.inputs.TAG_VERSION }}
15+ permissions :
16+ contents : write
17+
1318jobs :
1419
1520 ci :
1621 name : CI Job
1722 uses : ./.github/workflows/ci.yml
18-
19- check_and_test :
23+
24+ update_tag :
25+ name : Update Tag Job
2026 runs-on : ubuntu-latest
21- strategy :
22- matrix :
23- version : [v1.5.5, v2.0.4]
24- include :
25- - version : v1.5.5
26- coverage : test-coverage-v1
27- - version : v2.0.4
28- coverage : test-coverage-v2
27+ needs : [ci]
28+ permissions :
29+ contents : write
2930 steps :
30-
31- # setup php version
32- - name : Setup PHP
33- uses : shivammathur/setup-php@v2
34- with :
35- php-version : ' 8.2'
36-
37- - name : Setup Composer
38- uses : php-actions/composer@v6
39- continue-on-error : true
40-
41- - name : SurrealDB in Github Actions
42- uses : surrealdb/setup-surreal@v2
43- with :
44- surrealdb_version : ${{ matrix.version }}
45- surrealdb_auth : true
46- surrealdb_username : ' root'
47- surrealdb_password : ' root'
48- surrealdb_additional_args : --allow-all
49- surrealdb_strict : true
50-
51- - name : Run tests
52- run : composer ${{ matrix.coverage }}
31+ - name : Create a release
32+ uses : ncipollo/release-action@v1
33+ with :
34+ tag : ${{ env.TAG_VERSION }}
35+ name : Release ${{ github.event.inputs.TAG_VERSION }}
36+ draft : true
37+ body : ${{ github.event.inputs.RELEASE_MESSAGE }}
38+ generateReleaseNotes : true
You can’t perform that action at this time.
0 commit comments