[f3548v21] Target interuss/astm-utm-protocol repo as submodule and re… #9
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
# Based on https://github.com/denkiwakame/py-tiny-pkg/blob/main/.github/workflows/testpub.yml | |
name: publish-test | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup-python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.x" | |
architecture: "x64" | |
- name: install pypa/build | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: build sdist(tarball) and bdist(wheel) to dist/ | |
run: >- # = python -m build . works the same way by default | |
python -m | |
build | |
--sdist | |
--wheel | |
--outdir dist/ | |
- name: publish to TestPyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository_url: https://test.pypi.org/legacy/ |