Skip to content

Commit

Permalink
Use trusted publisher (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman authored Oct 4, 2023
1 parent 2c271d0 commit 711a0c7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 11 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Wheel and Release
on:
push:
tags:
- v*

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-python@v4
name: Install Python
with:
python-version: "3.11"

- name: Build wheels
run: |
git clean -fxd
pip install -U build twine wheel
python -m build --sdist --wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
11 changes: 0 additions & 11 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ Example `version number`
where `origin` is the name of the `github.com:scientific-python/changelist`
repository

- Review the github release page:

https://github.com/scientific-python/changelist/tags

- Publish on PyPi:

git clean -fxd
pip install -U build twine wheel
python -m build --sdist --wheel
twine upload dist/*

- Update `version` in `pyproject.toml`.

- Commit changes:
Expand Down

0 comments on commit 711a0c7

Please sign in to comment.