Skip to content

Merge pull request #7 from smochan/feat/df4-trace #20

Merge pull request #7 from smochan/feat/df4-trace

Merge pull request #7 from smochan/feat/df4-trace #20

Workflow file for this run

name: release

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 40, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.PYPI_API_TOKEN != ''
on:
push:
tags:
- "v*"
permissions:
contents: write # needed to create GitHub releases
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install build tools
run: pip install build twine
- name: Build sdist and wheel
run: python -m build
- name: Check distributions
run: twine check dist/*
- name: Upload dist artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
- name: Publish to PyPI
if: ${{ secrets.PYPI_API_TOKEN != '' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
body_path: CHANGELOG.md
files: dist/*