Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump artifact actions to V4 #36

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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