Skip to content

Commit

Permalink
Merge pull request #100 from computational-psychology/build_refresh
Browse files Browse the repository at this point in the history
build: update versioning to use python-semantic-release@v8.0
  • Loading branch information
JorisVincent committed Aug 23, 2023
2 parents ef686f3 + e0cd11e commit 16a3496
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
bump-version:
if: (github.event.pull_request.merged == true) || (github.event_name == 'workflow_dispatch')
runs-on: ubuntu-latest
concurrency: bump-version
permissions:
id-token: write
contents: write

steps:
- name: Checkout repository
Expand All @@ -18,20 +22,14 @@ jobs:
fetch-depth: 0 # checkout full commit history
token: ${{ secrets.GHA_Token }}

- name: Setup Python
uses: actions/setup-python@v4
- name: Python Semantic Release
id: versioning
uses: python-semantic-release/python-semantic-release@master
with:
python-version: 3.11
github_token: $${{ secrets.GHA_TOKEN }}

- name: Configure git to be able to push to repo
env:
GH_TOKEN: ${{ secrets.GHA_Token }}
run: |
git config user.name token
git config user.email token@github.com
- name: Bump version, build & upload release assets using Semantic Release
env:
GH_TOKEN: ${{ secrets.GHA_Token }}
run: |
pipx run python-semantic-release publish -v DEBUG
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.versioning.outputs.released == 'true'
with:
github_token: ${{ secrets.GHA_TOKEN }}

0 comments on commit 16a3496

Please sign in to comment.