Skip to content

Commit

Permalink
Merge pull request #17 from conda-incubator/update-gh-actions
Browse files Browse the repository at this point in the history
add trusted publishers method
  • Loading branch information
trallard authored Aug 18, 2023
2 parents b927022 + ac26977 commit 1f789dc
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/build_and_deploy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ on:
tags:
- 'v*'
jobs:

call-build:
uses: conda-incubator/jupyterlab-conda-store/.github/workflows/build.yml@main

deploy-build:
runs-on: ubuntu-latest
if: always() # Runs despite playwright tests failing
needs: call-build
permissions:
id-token: write

steps:
- name: Checkout
Expand All @@ -25,14 +26,5 @@ jobs:
name: extension-artifacts
path: dist/

- name: Upload to pypi
run: |
set -eux
pip install twine
twine upload -r pypi dist/*
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}



- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 1f789dc

Please sign in to comment.