File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments