File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1- # .github/workflows/bump-version.yml
21name : Bump Version on Merge to Main
32
43on :
@@ -14,25 +13,35 @@ jobs:
1413 id-token : write
1514
1615 steps :
17- - uses : actions/checkout@v4
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
1818 with :
19- fetch-depth : 0 # Fetch all history for all branches and tags
19+ fetch-depth : 0 # Required for semantic-release to access full git history
2020
21- - uses : actions/setup-python@v5
21+ - name : Set up Python
22+ uses : actions/setup-python@v5
2223 with :
2324 python-version : " 3.11"
2425
25- - run : pip install python-semantic-release
26+ - name : Install Poetry
27+ run : |
28+ curl -sSL https://install.python-poetry.org | python3 -
29+ echo "$HOME/.local/bin" >> $GITHUB_PATH
30+
31+ - name : Install dependencies
32+ run : |
33+ poetry install
34+ poetry add --group dev python-semantic-release
2635
27- - name : Configure Git
36+ - name : Configure Git user
2837 run : |
2938 git config user.name "github-actions[bot]"
3039 git config user.email "github-actions[bot]@users.noreply.github.com"
3140
3241 - name : Run Semantic Release
3342 env :
3443 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35- run : semantic-release version
44+ run : poetry run semantic-release publish
3645
3746 - name : Push changes
3847 run : |
Original file line number Diff line number Diff line change 22name = " gen_surv"
33version = " 0.1.0"
44description = " A Python package for simulating survival data, inspired by the R package genSurv"
5- authors = [" Your Name <you@example .com>" ]
5+ authors = [" Diogo Ribeiro <diogo_dj@hotmail .com>" ]
66license = " MIT"
77readme = " README.md"
88packages = [{ include = " gen_surv" }]
You can’t perform that action at this time.
0 commit comments