Skip to content

Commit 6665540

Browse files
authored
Merge pull request #194 from pypa/release-on-release
Run release workflow on release
2 parents 8e39585 + 6b82920 commit 6665540

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
name: Release
22
on:
3-
push:
4-
branches:
5-
- main
3+
release:
4+
types: [published]
65
jobs:
76
build-and-publish:
87
runs-on: ubuntu-latest
98
steps:
10-
- uses: actions/checkout@v2
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
with:
12+
ref: ${{ github.event.release.tag_name }}
1113
- name: Set up Python
1214
uses: actions/setup-python@v2
13-
with:
14-
python-version: '3.x'
1515
- name: Install build dependencies
1616
run: pip install -U setuptools wheel build
1717
- name: Build
1818
run: python -m build .
1919
- name: Publish
2020
uses: pypa/gh-action-pypi-publish@release/v1
2121
with:
22-
skip_existing: true
2322
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)