Implement safeguard against problematic meta keys (#131) #99
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
# copied from https://github.com/marketplace/actions/install-poetry-action | |
name: publish | |
on: | |
push: | |
tags: ["v*"] | |
release: | |
types: ["published"] | |
jobs: | |
publish: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
#------------------------------------ | |
# check-out repo and set-up python | |
#------------------------------------ | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up python | |
id: setup-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
#------------------------------ | |
# install & configure poetry | |
#------------------------------ | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Install poetry dynamic versioning plugin | |
run: poetry self add "poetry-dynamic-versioning[plugin]" | |
- name: Build package | |
run: poetry build | |
- if: github.event_name == 'release' | |
name: Publish distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
- if: github.event_name != 'release' | |
name: Publish distribution to Test PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ |