Skip to content

Commit

Permalink
Merge pull request #76 from umr-lops/fix_upload_artifact
Browse files Browse the repository at this point in the history
align publish.yml with the one from RCM repo
  • Loading branch information
agrouaze authored Sep 9, 2024
2 parents 1306b9c + abcda22 commit ddd91d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
if: github.repository == 'umr-lops/grdwindinversion'
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
Expand All @@ -22,12 +22,12 @@ jobs:
python -m pip install build twine
- name: Build
run: |
python -m build --sdist --outdir dist/ .
python -m build --sdist --wheel --outdir dist/ .
- name: Check the built archives
run: |
twine check dist/*
- name: Upload build artifacts
uses: actions/upload-artifact@v4.1.7
uses: actions/upload-artifact@v4
with:
name: packages
path: dist/*
Expand All @@ -45,10 +45,10 @@ jobs:

steps:
- name: Download build artifacts
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
name: packages
path: dist/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450

0 comments on commit ddd91d1

Please sign in to comment.