Skip to content

Remove tags as it is not needed when tags-ignore is present #2

Remove tags as it is not needed when tags-ignore is present

Remove tags as it is not needed when tags-ignore is present #2

Workflow file for this run

name: CD
on:
push:
tags-ignore:
- 1.*
env:
FORCE_COLOR: 1
release:
if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags')"
runs-on: "ubuntu-latest"
needs: "test"
steps:
- uses: "actions/checkout@v3"
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
pip install build
- name: "Build"
run: |
python -m build
git status --ignored
- name: "Publish"
uses: "pypa/gh-action-pypi-publish@release/v1"
with:
user: "__token__"
password: "${{ secrets.TEST_PYPI_API_TOKEN }}"
repository_url: "https://test.pypi.org/legacy/"