JonathanHuot build and unittest #1
Workflow file for this run
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: GitHub Python Packaging | |
run-name: ${{ github.actor }} build and unittest | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
pypi-publish: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/bottle-oauthlib | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Install prereq | |
run: pip install wheel | |
- name: Build python package | |
run: python setup.py build | |
- name: Package python package | |
run: python setup.py sdist bdist_wheel | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |