Skip to content

Commit

Permalink
Add publish GitHub workflow (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Aug 20, 2022
1 parent 4d993ad commit ccd476e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish

on:
push:
tags:
- "*"

jobs:
publish:
name: "Publish release"
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "3.10"

- name: "Install dependencies"
run: "scripts/install"

- name: "Build package & docs"
run: "scripts/build"

- name: "Publish to PyPI & deploy docs"
run: "scripts/publish"
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 comments on commit ccd476e

Please sign in to comment.