Release Test #1
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
# Keep the content of this file in sync with release.yml. | |
name: Release Test | |
on: | |
workflow_dispatch: | |
jobs: | |
pypi-publish: | |
name: Upload release to PyPI Test | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://test.pypi.org/p/green | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12.2 | |
- name: Install | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade '.[dev]' | |
- name: Test | |
run: green -rv green | |
- name: Build | |
run: make sdist | |
- name: Publish | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ |