Skip to content

Commit

Permalink
Merge pull request #870 from minrk/publish
Browse files Browse the repository at this point in the history
publish via trusted publishers
  • Loading branch information
minrk committed Mar 4, 2024
2 parents 5e13f56 + 2d0953b commit 8eb8ec6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ concurrency:

jobs:
build-release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.11
cache: pip

- name: install build package
run: |
Expand All @@ -41,7 +42,7 @@ jobs:
- name: verify wheel
run: |
cd dist
pip install ./*.whl jupyterlab==3.*
pip install ./*.whl jupyterlab==4.*
ipcluster --help-all
ipcontroller --help-all
ipengine --help-all
Expand All @@ -55,11 +56,18 @@ jobs:
path: "dist/*"
if-no-files-found: error

- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install twine
twine upload --skip-existing dist/*
upload-pypi:
permissions:
id-token: write
environment: release
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/')
needs:
- build-release
steps:
- uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: Publish wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"strict": true,
"strictNullChecks": false,
"target": "es2018",
"types": [],
"types": []
},
"include": ["lab/src/*"],
"include": ["lab/src/*"]
}

0 comments on commit 8eb8ec6

Please sign in to comment.