Skip to content

Commit 476ba81

Browse files
Merge pull request #7 from DiogoRibeiro7/feat/first_commit
fix: add name to pyproject
2 parents 893a3d1 + 055c209 commit 476ba81

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/bump-version.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# .github/workflows/bump-version.yml
21
name: Bump Version on Merge to Main
32

43
on:
@@ -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: |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "gen_surv"
33
version = "0.1.0"
44
description = "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>"]
66
license = "MIT"
77
readme = "README.md"
88
packages = [{ include = "gen_surv" }]

0 commit comments

Comments
 (0)