Skip to content

2.2.2

2.2.2 #82

Workflow file for this run

name: release
on:
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: "https://pypi.org/p/cfgenvy"
permissions:
id-token: write
steps:
- name: checkout
uses: actions/checkout@v4
- name: build
run: |
docker compose run build-wheel
- name: pre-release
if: ${{ github.event.release.prerelease }}
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- name: release
if: ${{ !github.event.release.prerelease }}
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}