Skip to content

Commit

Permalink
fix publish job to use trusted publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
nachomaiz committed Jul 7, 2023
1 parent ecc3ab5 commit a8302d9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@ on:
types: [released]

jobs:
deploy:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Python
uses: wntrblm/[email protected]
with:
python-versions: '3.11'
- name: Build dist
run: nox -s build
- name: Publish dist
run: nox -s publish
- name: Set up Python
uses: wntrblm/[email protected]
with:
python-versions: '3.11'

- name: Build dist
run: nox -s build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ theme:

extra_css: [extra.css]

extra:
version:
provider: mike

markdown_extensions:
- admonition
- attr_list
Expand Down Expand Up @@ -85,6 +89,7 @@ plugins:
- literate-nav:
nav_file: SUMMARY.md
- section-index
- mike
- mkdocstrings:
handlers:
python:
Expand Down

0 comments on commit a8302d9

Please sign in to comment.