From 995f4b71596beca14002b1e7c6e83dc49981bc21 Mon Sep 17 00:00:00 2001 From: Huanchen Zhai Date: Sun, 7 Apr 2024 23:50:09 -0700 Subject: [PATCH] update gh actions --- .github/workflows/build.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e87757d..7a3bd8fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -341,13 +341,13 @@ jobs: - name: release if: startsWith(github.ref, 'refs/tags/') - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: dist/* - name: upload artifacts if: startsWith(github.ref, 'refs/tags/') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dist-${{ matrix.parallel }} path: dist @@ -378,7 +378,7 @@ jobs: - name: release (serial) if: startsWith(github.ref, 'refs/tags/') - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: dist/* @@ -396,7 +396,7 @@ jobs: - name: release (mpi) if: startsWith(github.ref, 'refs/tags/') - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: dist/* @@ -410,13 +410,13 @@ jobs: uses: actions/configure-pages@v2 - name: upload artifacts - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: './idx-dist' - name: deploy to gitHub pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 publish: name: publish @@ -439,16 +439,13 @@ jobs: python -m build --sdist - name: download wheels (serial) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist-serial path: dist - name: publish to pypi (serial) - uses: pypa/gh-action-pypi-publish@v1.4.2 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + uses: pypa/gh-action-pypi-publish@release/v1 - name: build source dist (mpi) env: @@ -462,13 +459,10 @@ jobs: python -m build --sdist - name: download wheels (mpi) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dist-mpi path: dist - name: publish to pypi (mpi) - uses: pypa/gh-action-pypi-publish@v1.4.2 - with: - user: __token__ - password: ${{ secrets.PYPI_API_MPI_TOKEN }} + uses: pypa/gh-action-pypi-publish@release/v1