fixing references in documentation #18
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: Publish to TestPyPI using Poetry | |
# trigger upload on a new push to master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: | |
name: testpypi | |
url: https://test.pypi.org/p/openwfs | |
# enable openid authentication for PyPi | |
permissions: | |
id-token: write # Required for OIDC | |
steps: | |
# Checkout the repository | |
- name: Check out the repository | |
uses: actions/checkout@v3 | |
# Set up Python | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
# Install Poetry | |
- name: Install Poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
version: '1.8.3' | |
# Install dependencies and build the project | |
- name: Install dependencies and build package | |
run: | | |
poetry install | |
poetry build | |
# Publish to TestPyPI | |
#- name: Publish to TestPyPI | |
# run: | | |
# poetry config repositories.testpypi https://test.pypi.org/legacy/ | |
# poetry publish --repository testpypi | |
- name: Publish package distributions to TestPyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ | |