Skip to content

expose jwt for token based logon, if set will override u/p. #49

expose jwt for token based logon, if set will override u/p.

expose jwt for token based logon, if set will override u/p. #49

name: PyPI and TestPyPI
on: push
jobs:
build-n-publish:
name: Build and publish package to PyPI and TestPyPI
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install pep517
run: >-
python -m
pip install
pep517
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
pep517.build
--source
--binary
--out-dir dist/
.
- name: Publish package to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.test_pypi_token }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish package to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_token }}
skip_existing: true