Skip to content

Commit

Permalink
Setup publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryashutov committed Jan 9, 2023
1 parent c3d5103 commit eb80db4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish to https://pypi.org/

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install wheel and build
run: pip install wheel build
- name: Build a binary wheel and a source tarball
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit eb80db4

Please sign in to comment.