Skip to content

Commit

Permalink
fix: update ci to use semver bot
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah authored Oct 23, 2024
1 parent 56ef37e commit 98e3bd0
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,14 @@ jobs:
name: codecov-umbrella

cd:
concurrency: release
permissions:
contents: write
packages: write
issues: write
pull-requests: write
id-token: write
actions: read
contents: write
packages: write
issues: write
pull-requests: write

needs: [tests]

Expand All @@ -99,6 +102,12 @@ jobs:

# Define job steps
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.SEMVERPOLICE_ID }}
private-key: ${{ secrets.SEMVER_APP_KEY }}

- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
Expand All @@ -110,10 +119,11 @@ jobs:
fetch-depth: 0

- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@master
with:
root_options: -v
github_token: ${{ secrets.GITHUB_TOKEN }}
git_committer_name: 'gh-actions-semver'

pip-squeak:
needs: cd
Expand Down Expand Up @@ -167,4 +177,4 @@ jobs:
run: |
pip install med-imagetools
# autopipeline
# pip install med-imagetools ==${{ needs.cd.outputs.version }}
# pip install med-imagetools ==${{ needs.cd.outputs.version }}

0 comments on commit 98e3bd0

Please sign in to comment.