Skip to content

Commit 5f8c8ef

Browse files
authored
Merge pull request #19 from LucasAlvws/feat/pyproject-version-poetry
feat: dynamic lib version using pyproject
2 parents e94460b + d1acf72 commit 5f8c8ef

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,30 @@ jobs:
2525
- name: Print Version
2626
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
2727

28+
- name: Install Poetry
29+
run: |
30+
curl -sSL https://install.python-poetry.org | python3 -
31+
export PATH="$HOME/.local/bin:$PATH"
32+
33+
- name: Update Poetry version in pyproject.toml
34+
run: |
35+
git config --global user.name "github-actions[bot]"
36+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
37+
poetry version "${{ steps.cz.outputs.version }}"
38+
git add pyproject.toml
39+
git commit -m "Update pyproject.toml to version ${{ steps.cz.outputs.version }}"
40+
git push
41+
42+
- name: Update poetry.lock
43+
run: |
44+
git config --global user.name "github-actions[bot]"
45+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
46+
poetry lock
47+
git add poetry.lock
48+
git commit -m "Update poetry.lock for version ${{ steps.cz.outputs.version }}"
49+
git push
50+
51+
2852
release:
2953
name: Release
3054
needs: version

0 commit comments

Comments
 (0)