Skip to content

Commit

Permalink
Add GitHub Actions workflow for making a release (#97)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mdickinson authored Oct 7, 2023
1 parent e5863a3 commit 0ba02fa
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
workflow_dispatch:
release:
types: [published]

jobs:
build-and-upload:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- run: python -m pip install build twine
- run: python -m build
- run: |
python -m twine check --strict dist/*
python -m twine upload dist/*
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
This file contains historical changes up to release 0.2.1.
For more recent changes see the release notes on GitHub.

Refcycle changelog
==================

Expand Down

0 comments on commit 0ba02fa

Please sign in to comment.