Skip to content

Trigger CD action on every tag except 1.* #1

Trigger CD action on every tag except 1.*

Trigger CD action on every tag except 1.* #1

Workflow file for this run

Check failure on line 1 in .github/workflows/cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cd.yml

Invalid workflow file

you may only define one of `tags` and `tags-ignore` for a single event
name: CD
on:
push:
tags: ["*"]
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/"