Skip to content

Commit 5e21291

Browse files
committed
chore: build release action
1 parent 955a133 commit 5e21291

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/.gitignore

Whitespace-only changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: build-release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
-
7+
jobs:
8+
build:
9+
runs-on:
10+
- fireactions-c2-m4
11+
12+
steps:
13+
- name: Repo checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Composer install
17+
uses: php-actions/composer@v6
18+
19+
- name: PHPStan check
20+
uses: php-actions/phpstan@v3
21+
with:
22+
path: src/
23+
24+
- name: Bump version and push tag
25+
id: bump
26+
uses: hennejg/github-tag-action@v4.3.1
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
release_branches: main
30+
31+
- uses: ncipollo/release-action@v1
32+
with:
33+
tag: ${{ steps.bump.outputs.new_tag }}
34+
generateReleaseNotes: true

0 commit comments

Comments
 (0)