Skip to content

Commit 0ba02fa

Browse files
authored
Add GitHub Actions workflow for making a release (#97)
This PR adds a GitHub Actions workflow for building wheel and sdist and uploading to PyPI on release. Also adds a note to the changelog indicating that it's now historical.
1 parent e5863a3 commit 0ba02fa

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
build-and-upload:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.12'
17+
- run: python -m pip install build twine
18+
- run: python -m build
19+
- run: |
20+
python -m twine check --strict dist/*
21+
python -m twine upload dist/*
22+
env:
23+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
24+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
This file contains historical changes up to release 0.2.1.
2+
For more recent changes see the release notes on GitHub.
3+
14
Refcycle changelog
25
==================
36

0 commit comments

Comments
 (0)