diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7948e89..bb6c653 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,7 +28,7 @@ on: workflow_dispatch: jobs: - wheel: + sdist: permissions: contents: read @@ -36,19 +36,20 @@ jobs: 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 @@ -56,17 +57,18 @@ jobs: 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] @@ -82,9 +84,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 @@ -106,7 +107,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