nomerge! Also run the TestPyPI upload from our test branch #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "Publish latest default branch content to TestPyPI" | |
on: | |
push: | |
branches: | |
- main | |
- trusted-publisher | |
jobs: | |
publish-to-stage: | |
runs-on: ubuntu-latest | |
environment: | |
name: stage-release | |
url: https://test.pypi.org/p/devpi-client | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install build | |
- name: Build package | |
run: python -m build | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ |