Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# .github/workflows/bump-version.yml
name: Bump Version on Merge to Main

on:
Expand All @@ -14,25 +13,35 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags
fetch-depth: 0 # Required for semantic-release to access full git history

- uses: actions/setup-python@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- run: pip install python-semantic-release
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
poetry install
poetry add --group dev python-semantic-release
- name: Configure Git
- name: Configure Git user
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Run Semantic Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: semantic-release version
run: poetry run semantic-release publish

- name: Push changes
run: |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "gen_surv"
version = "0.1.0"
description = "A Python package for simulating survival data, inspired by the R package genSurv"
authors = ["Your Name <you@example.com>"]
authors = ["Diogo Ribeiro <diogo_dj@hotmail.com>"]
license = "MIT"
readme = "README.md"
packages = [{ include = "gen_surv" }]
Expand Down