Skip to content

Commit

Permalink
Merge pull request #194 from pypa/release-on-release
Browse files Browse the repository at this point in the history
Run release workflow on release
  • Loading branch information
di authored Feb 23, 2021
2 parents 8e39585 + 6b82920 commit 6665540
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
name: Release
on:
push:
branches:
- main
release:
types: [published]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install build dependencies
run: pip install -U setuptools wheel build
- name: Build
run: python -m build .
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
password: ${{ secrets.pypi_password }}

0 comments on commit 6665540

Please sign in to comment.