Skip to content

Commit

Permalink
Add Github Action for PyPI releases
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Jun 9, 2022
1 parent 3a7ca2b commit 911b114
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release

on:
release:
types: [published]
workflow_dispatch:
inputs:
ref:
description: 'Tag to release'
required: true

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
if: ${{ github.event_name == 'release' }}
- uses: actions/checkout@v2
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
ref: ${{ github.event.inputs.ref }}
- name: Create dist
run: make wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 911b114

Please sign in to comment.