diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index c894e36..a878dfa 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -1,4 +1,3 @@ -# .github/workflows/bump-version.yml name: Bump Version on Merge to Main on: @@ -14,17 +13,27 @@ 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" @@ -32,7 +41,7 @@ jobs: - name: Run Semantic Release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: semantic-release version + run: poetry run semantic-release publish - name: Push changes run: | diff --git a/pyproject.toml b/pyproject.toml index 13d36d2..2b555bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] +authors = ["Diogo Ribeiro "] license = "MIT" readme = "README.md" packages = [{ include = "gen_surv" }]