Skip to content

Commit

Permalink
MNT: upgrade upload/download-artifact GitHub actions (gwastro#4595)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Feb 9, 2024
1 parent e1984b6 commit 02f77b6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/basic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
tox -e py-inference
- name: store documentation page
if: matrix.test-type == 'docs' && matrix.python-version == '3.8'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: documentation-page
path: _gh-pages
Expand All @@ -61,9 +61,10 @@ jobs:
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- name: retrieve built documentation
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: documentation-page
pattern: documentation-page-*
merge-multiple: true
- name: debug
run: |
mkdir _gh-pages
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ jobs:
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-*
CIBW_SKIP: "*musllinux*"
CIBW_ARCHS_MACOS: x86_64 arm64
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
deploy_pypi:
name: Build and publish Python 🐍 distributions 📦 to PyPI
Expand All @@ -44,13 +45,14 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
path: ./
pattern: wheels-*
merge-multiple: true
- name: build pycbc for pypi
run: |
python setup.py sdist
mv artifact/* dist/
mv *.whl dist/
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/inference-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ jobs:
find submitdir/work/ -type f -name '*.tar.gz' -delete
- name: store log files
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs
path: gw_output/submitdir/work
- name: store result page
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: results
path: html
4 changes: 2 additions & 2 deletions .github/workflows/search-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ jobs:
find submitdir/work/ -type f -name '*.tar.gz' -delete
- name: store log files
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs
path: output/submitdir/work
- name: store result page
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: results
path: html
2 changes: 1 addition & 1 deletion .github/workflows/tmpltbank-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
find submitdir/work/ -type f -name '*.tar.gz' -delete
- name: store log files
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs
path: output/submitdir/work
2 changes: 1 addition & 1 deletion .github/workflows/workflow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
find submitdir/work/ -type f -name '*.tar.gz' -delete
- name: store log files
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs-${{matrix.test-type}}
path: examples/workflow/generic/${{matrix.test-type}}/submitdir/work

0 comments on commit 02f77b6

Please sign in to comment.