diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2261bdf..ed9ec73 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: @@ -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/ diff --git a/README.md b/README.md index 3529418..a048645 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,9 @@ Set of Command Line Interface tools to process Open Targets Genetics GWAS data. ## Installation -TBA +``` +pip install gentroutils +``` ## Available commands