Skip to content

Commit

Permalink
Merge pull request #3 from coherent-oss/feat/configure-release-workflow
Browse files Browse the repository at this point in the history
feat: Configures trusted publishing release
  • Loading branch information
thiagopena authored May 6, 2024
2 parents 944afb6 + 77531dd commit 7d780b9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ jobs:
jobs: ${{ toJSON(needs) }}

release:
environment: release
permissions:
contents: write
id-token: write
needs:
- check
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
Expand All @@ -116,8 +118,11 @@ jobs:
python-version: 3.x
- name: Install tox
run: python -m pip install tox
- name: Run
run: tox -e release
- name: Build
run: tox -e release exec -- python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: GitHub Release
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: tox -e release exec -- python -m jaraco.develop.create-github-release

0 comments on commit 7d780b9

Please sign in to comment.