Skip to content

Commit

Permalink
ci: add pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Szyszkowski committed Aug 13, 2024
1 parent aa19be5 commit 271abbf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
39 changes: 35 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ env:
PYTHON_VERSION_DEFAULT: "3.10.8"

jobs:
release:
build:
runs-on: ubuntu-latest
environment: PyPI
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
contents: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -33,8 +30,42 @@ jobs:
run: rye sync
- name: Build package
run: make build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

test-release:
runs-on: ubuntu-latest
environment: TEST
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: dist/

release:
runs-on: ubuntu-latest
environment: PyPI
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://upload.pypi.org/legacy/
packages-dir: dist/
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Set of Command Line Interface tools to process Open Targets Genetics GWAS data.

## Installation

TBA
```
pip install gentroutils
```

## Available commands

Expand Down

0 comments on commit 271abbf

Please sign in to comment.