Skip to content

Commit

Permalink
update gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhai committed Apr 8, 2024
1 parent eaa1d1d commit 995f4b7
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/build.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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/*

Expand All @@ -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/*

Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 995f4b7

Please sign in to comment.