Skip to content

Commit

Permalink
Add installation steps to bump
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholls committed Oct 12, 2023
1 parent 51b687c commit a6f3544
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,26 @@ jobs:
with:
fetch-depth: 0
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
# towncrier imports the package as part of building so just do the full
# setup here
- uses: ./.github/actions/setup
with:
python-version: "3.11"
venv-id: "bump"
# another test that we can import if we only install the main library
poetry-dependency-install-flags: "--only main"
- name: Install towncrier
run: |
poetry run pip install towncrier
- name: Create bump and changelog

run: |
BASE_VERSION=`poetry version -s`
NEW_VERSION=`poetry version -s $BUMP_RULE`
towncrier build --yes --version v$NEW_VERSION
poetry run towncrier build --yes --version v$NEW_VERSION
git config --global user.name "${{ env.GITHUB_ACTOR }}"
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
git config --global user.name "${{ GITHUB_ACTOR }}"
git config --global user.email "${{ vars.CI_COMMIT_EMAIL }}"
git commit -a -m "bump: version $BASE_VERSION -> $NEW_VERSION"
git tag v$NEW_VERSION
Expand Down

0 comments on commit a6f3544

Please sign in to comment.