Skip to content

[pre-commit.ci] pre-commit autoupdate #347

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #347

Workflow file for this run

# This is a GitHub workflow defining a set of jobs with a set of steps.
# ref: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
#
# Build releases and publish to PyPI if a tag is pushed
name: Release
on:
pull_request:
paths-ignore:
- "docs/**"
- "**/docs.yml"
push:
paths-ignore:
- "docs/**"
- "**/docs.yml"
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
tags: ["**"]
workflow_dispatch:
jobs:
build-release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: install build package
run: |
pip install --upgrade pip
pip install build
pip freeze
- name: build release
run: |
python -m build --sdist --wheel .
ls -l dist
- name: publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.ref, 'refs/tags/')
with:
user: __token__
password: ${{ secrets.pypi_password }}