Skip to content

Commit

Permalink
workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
gasse committed Mar 12, 2024
1 parent 8ff4618 commit 2156c6f
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: python3 -m build webarena/ --outdir dist/

- name: Build a binary wheel and a source tarball (browsergym)
run: python3 -m build meta/ --outdir dist/
run: python3 -m build . --outdir dist/

- name: Store the distribution packages
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -99,23 +99,23 @@ jobs:
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'
publish-to-testpypi:
name: Publish to TestPyPI
needs:
- build
runs-on: ubuntu-latest
environment: testpypi
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the distribution packages
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/

- name: Publish distribution packages to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
# publish-to-testpypi:
# name: Publish to TestPyPI
# needs:
# - build
# runs-on: ubuntu-latest
# environment: testpypi
# permissions:
# id-token: write # IMPORTANT: mandatory for trusted publishing

# steps:
# - name: Download all the distribution packages
# uses: actions/download-artifact@v4
# with:
# name: python-package-distributions
# path: dist/

# - name: Publish distribution packages to TestPyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/

0 comments on commit 2156c6f

Please sign in to comment.