Skip to content

Commit

Permalink
fixing syntax error on github action yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed May 8, 2024
1 parent 11bbee7 commit 23401de
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,24 +205,24 @@ jobs:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

.upload_pypi:
needs: build_wheels
runs-on: ubuntu-latest
environment:
name: testpypi
# url: https://test.pypi.org/project/ukaea_pyuda/
permissions:
id-token: write
# if: github.event_name == 'release' && github.event.action == 'published'
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
# upload_pypi:
# needs: build_wheels
# runs-on: ubuntu-latest
# environment:
# name: testpypi
# # url: https://test.pypi.org/project/ukaea_pyuda/
# permissions:
# id-token: write
# # if: github.event_name == 'release' && github.event.action == 'published'
# # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
# steps:
# - uses: actions/download-artifact@v4
# with:
# # unpacks all CIBW artifacts into dist/
# pattern: cibw-*
# path: dist
# merge-multiple: true
#
# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/

0 comments on commit 23401de

Please sign in to comment.