Skip to content

Commit 9848b38

Browse files
committed
pypi release workflow
1 parent 152927b commit 9848b38

File tree

2 files changed

+35
-3
lines changed

2 files changed

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

.github/workflows/publish-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: publish-release
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
release:
5+
types: [released]
76

87
jobs:
98
build:

0 commit comments

Comments
 (0)