Release to GitHub and PyPI #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release to GitHub and PyPI | |
on: | |
workflow_dispatch: | |
env: | |
gh-release-user-name: Ely Deckers | |
python-version: 3.9 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build and publish release | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ env.python-version }} | |
architecture: x64 | |
- run: make release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_RELEASE_USER_EMAIL: ${{ secrets.GH_RELEASE_USER_EMAIL }} | |
GITHUB_RELEASE_USER_NAME: ${{ env.gh-release-user-name }} | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN}} |