We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e39585 + 6b82920 commit 6665540Copy full SHA for 6665540
.github/workflows/release.yml
@@ -1,23 +1,22 @@
1
name: Release
2
on:
3
- push:
4
- branches:
5
- - main
+ release:
+ types: [published]
6
jobs:
7
build-and-publish:
8
runs-on: ubuntu-latest
9
steps:
10
- - uses: actions/checkout@v2
+ - name: Checkout
+ uses: actions/checkout@v2
11
+ with:
12
+ ref: ${{ github.event.release.tag_name }}
13
- name: Set up Python
14
uses: actions/setup-python@v2
- with:
- python-version: '3.x'
15
- name: Install build dependencies
16
run: pip install -U setuptools wheel build
17
- name: Build
18
run: python -m build .
19
- name: Publish
20
uses: pypa/gh-action-pypi-publish@release/v1
21
with:
22
- skip_existing: true
23
password: ${{ secrets.pypi_password }}
0 commit comments