Skip to content

Commit 8fbe9a4

Browse files
committed
release workflow
1 parent dd4ce6b commit 8fbe9a4

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/phpUnitTestsRelease.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
1-
name: Run Tests
1+
name: Create release
22

33
on:
44
push:
5-
branches: [ "release" ]
6-
pull_request:
7-
branches: [ "release" ]
5+
branch:
6+
- release
87

98
permissions:
10-
contents: read
9+
contents: write
1110

1211
jobs:
13-
1412
release:
1513
name: Release pushed tag
16-
17-
runs-on: ubuntu-latest
18-
14+
runs-on: ubuntu-22.04
1915
steps:
20-
2116
- name: Create release
2217
env:
2318
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2419
tag: "release-${{ github.sha }}"
2520
commit_message: ${{ github.event.head_commit.message }}
2621
run: |
27-
gh release create "${tag}" \
22+
gh release create "$tag" \
2823
--repo="$GITHUB_REPOSITORY" \
2924
--title="${commit_message}" \
3025
--generate-notes

0 commit comments

Comments
 (0)