Skip to content

Fix faulty publish workflow #20

Fix faulty publish workflow

Fix faulty publish workflow #20

Workflow file for this run

name: Publish ixmp4
on:
push:
tags: ["v*"]
release:
types: ["published"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install python-dev
- uses: actions/checkout@v3
# publish to pypi
- if: github.event_name == 'release'
name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
plugins: "poetry-dynamic-versioning[plugin]"
python_version: "3.10"
# publish to testpypi
- if: github.event_name != 'release'
name: Build and publish to testpypi
uses: JRubics/[email protected]
with:
python_version: "3.10"
repository_name: "testpypi"
repository_url: "https://test.pypi.org/legacy/"
pypi_token: ${{ secrets.TESTPYPI_TOKEN }}
plugins: "poetry-dynamic-versioning[plugin]"