mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-23 18:58:59 +02:00
build: split build and upload into 2 jobs
This commit is contained in:
parent
7991e3d9a2
commit
12138e2b8d
30
.github/workflows/release-please.yml
vendored
30
.github/workflows/release-please.yml
vendored
@ -22,16 +22,11 @@ jobs:
|
|||||||
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
|
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
|
||||||
release-type: python
|
release-type: python
|
||||||
|
|
||||||
upload-pypi:
|
build-pypi:
|
||||||
name: Upload to pypi
|
name: Build for pypi
|
||||||
needs: [release-please]
|
needs: [release-please]
|
||||||
if: ${{ needs.release-please.outputs.release_created == 'true' }}
|
if: ${{ needs.release-please.outputs.release_created == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
|
||||||
name: pypi
|
|
||||||
url: https://pypi.org/p/sshuttle
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python 3.12
|
- name: Set up Python 3.12
|
||||||
@ -55,5 +50,26 @@ jobs:
|
|||||||
run: poetry install
|
run: poetry install
|
||||||
- name: Package project
|
- name: Package project
|
||||||
run: poetry build
|
run: poetry build
|
||||||
|
- name: Store the distribution packages
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: python-package-distributions
|
||||||
|
path: dist/
|
||||||
|
|
||||||
|
upload-pypi:
|
||||||
|
name: Upload to pypi
|
||||||
|
needs: [build-pypi]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
environment:
|
||||||
|
name: pypi
|
||||||
|
url: https://pypi.org/p/sshuttle
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
steps:
|
||||||
|
- name: Download all the dists
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: python-package-distributions
|
||||||
|
path: dist/
|
||||||
- name: Publish package distributions to PyPI
|
- name: Publish package distributions to PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
Loading…
Reference in New Issue
Block a user