Skip to content

Commit

Permalink
Bump artifact actions to V4 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinfriede authored Feb 4, 2025
1 parent ff7863f commit 03dc226
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,45 +30,47 @@ on:
workflow_dispatch:

jobs:
wheel:
sdist:
permissions:
contents: read

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Build wheel (bdist)
run: pipx run build --wheel
- name: Build source distribution (sdist)
run: pipx run build --sdist

- name: Upload wheel as artifact
uses: actions/upload-artifact@v3
- name: Upload source distribution as artifact
uses: actions/upload-artifact@v4
with:
path: dist/*.whl
name: dxtb-sdist
path: dist/*.tar.gz

sdist:
wheel:
permissions:
contents: read

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Build source distribution (sdist)
run: pipx run build --sdist
- name: Build wheel (bdist)
run: pipx run build --wheel

- name: Upload source distribution as artifact
uses: actions/upload-artifact@v3
- name: Upload wheel as artifact
uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
name: dxtb-wheel
path: dist/*.whl

upload_test_pypi:
needs: [sdist, wheel]
Expand All @@ -84,9 +86,8 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifact
path: dist

- name: Publish to Test PyPI
Expand All @@ -108,7 +109,7 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand Down

0 comments on commit 03dc226

Please sign in to comment.