Skip to content

Commit 4112f4f

Browse files
authored
Create nextrelease.yml
1 parent 1a473d1 commit 4112f4f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/nextrelease.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: nextrelease
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
types: [labeled, unlabeled, edited, synchronize]
8+
9+
jobs:
10+
sync:
11+
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' && github.head_ref == 'nextrelease' }}
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0 # all branches and tags
17+
- uses: dropseed/nextrelease@v1
18+
with:
19+
prepare_cmd: |
20+
sed -i -e "s/changerelease==.*/changerelease==$VERSION/g" Dockerfile
21+
sed -i -e "s/version = \"[^\"]*\"/version = \"$VERSION\"/g" pyproject.toml
22+
publish_cmd: |
23+
poetry publish --build
24+
git tag -a v$VERSION_MAJOR -m v$VERSION_MAJOR -f && git push origin v$VERSION_MAJOR -f
25+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)