-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Martin Kim <46072231+martinkim0@users.noreply.github.com>
- Loading branch information
1 parent
aa23d48
commit 8156fdc
Showing
1 changed file
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
name: Upload release to PyPI | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
permissions: | ||
id-token: write | ||
|
||
release: | ||
name: Release | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: pypi | ||
url: https://pypi.org/project/scvi-tools/ | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install hatch | ||
run: | | ||
python -m pip install --upgrade hatch | ||
- name: Build project for distribution | ||
run: hatch build | ||
|
||
- name: Publish a Python distribution to PyPI | ||
filter: blob:none | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
cache: "pip" | ||
- run: pip install build | ||
- run: python -m build | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |