mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-05-11 11:34:38 +02:00
build: redo publish to pypi
This commit is contained in:
parent
5b08caaeb1
commit
fd6b6bb71f
41
.github/workflows/release-please.yml
vendored
41
.github/workflows/release-please.yml
vendored
@ -3,28 +3,53 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
name: release-please
|
name: release-please
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
release-please:
|
release-please:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: googleapis/release-please-action@v4
|
- uses: googleapis/release-please-action@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
|
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
|
||||||
release-type: python
|
release-type: python
|
||||||
|
|
||||||
upload-pypi:
|
upload-pypi:
|
||||||
name: Upload to pypi
|
name: Upload to 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:
|
||||||
- name: Publish PyPi package
|
- uses: actions/checkout@v4
|
||||||
uses: code-specialist/pypi-poetry-publish@v1
|
- name: Set up Python 3.12
|
||||||
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
python-version: 3.12
|
||||||
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
- name: Run image
|
||||||
|
uses: abatilo/actions-poetry@v4
|
||||||
|
with:
|
||||||
|
poetry-version: main
|
||||||
|
- name: Setup a local virtual environment (if no poetry.toml file)
|
||||||
|
run: |
|
||||||
|
poetry config virtualenvs.create true --local
|
||||||
|
poetry config virtualenvs.in-project true --local
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
name: Define a cache for the virtual environment based on the dependencies lock file
|
||||||
|
with:
|
||||||
|
path: ./.venv
|
||||||
|
key: venv-${{ hashFiles('poetry.lock') }}
|
||||||
|
- name: Install the project dependencies
|
||||||
|
run: poetry install
|
||||||
|
- name: Package project
|
||||||
|
run: poetry build
|
||||||
|
- name: Publish package distributions to PyPI
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
@ -109,7 +109,6 @@ It is also possible to install into a virtualenv as a non-root user.
|
|||||||
nix-env -iA nixpkgs.sshuttle
|
nix-env -iA nixpkgs.sshuttle
|
||||||
|
|
||||||
- Windows::
|
- Windows::
|
||||||
Use PyPI
|
|
||||||
|
|
||||||
pip install sshuttle
|
pip install sshuttle
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user