Skip to content

Commit

Permalink
try storing artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksanders committed Sep 12, 2024
1 parent 13e699f commit 3f9c839
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,24 @@ jobs:
name: Build package
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.10", "3.11" ]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.10"
- name: Install hatch
run: |
python -m pip install hatch
- name: Build dist
run: |
hatch build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

# pypi-publish:
# name: Upload release to PyPI
Expand All @@ -42,6 +44,11 @@ jobs:
# permissions:
# id-token: write
# steps:
# - name: Download all the dists
# uses: actions/download-artifact@v4
# with:
# name: python-package-distributions
# path: dist/
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1

Expand All @@ -55,5 +62,10 @@ jobs:
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 3f9c839

Please sign in to comment.