Skip to content

Commit

Permalink
Update release.yml to support pre-releases. (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgd authored Jul 30, 2024
1 parent 6cdc223 commit 52e95a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Release
on:
# Support manually pushing a new release
workflow_dispatch: {}
# Trigger when a release is published
# Trigger when a release or pre-release is published
release:
types: [released]
types: [published]

defaults:
run:
Expand All @@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache: "pip"
cache-dependency-path: setup.py

- name: Install dependencies
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Publish
env:
TWINE_NON_INTERACTIVE: true
TWINE_USERNAME: '__token__'
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
Expand Down

0 comments on commit 52e95a3

Please sign in to comment.