Bump dependencies #2
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: Create Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
package: | |
name: Build & Verify Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4.2.0 | |
- name: Set up Python | |
uses: actions/setup-python@v5.2.0 | |
with: | |
python-version: 3.x | |
cache: pip | |
cache-dependency-path: ${{ github.workspace }}/pyproject.toml | |
- name: Install Build Tools | |
run: | | |
python -m pip install -U pip setuptools wheel | |
python -m pip install .[dev] | |
- name: Build Package | |
run: tox -e package | |
- name: Upload Package | |
uses: actions/upload-artifact@v4.4.0 | |
with: | |
name: package | |
path: ./dist | |
if-no-files-found: error | |
release: | |
name: Create Release | |
needs: package | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write # required for trusted publishing | |
steps: | |
- name: Set Build Variables | |
id: build-vars | |
run: echo "version=${GITHUB_REF_NAME#v}" | tee -a ${GITHUB_OUTPUT} | |
- name: Set up Python | |
uses: actions/setup-python@v5.2.0 | |
with: | |
python-version: "3.x" | |
- name: Get Packages | |
uses: actions/download-artifact@v4.1.8 | |
with: | |
name: package | |
path: dist | |
- name: Create Release | |
uses: ncipollo/release-action@v1.14.0 | |
with: | |
name: release-${{ steps.build-vars.outputs.version }} | |
draft: true | |
artifacts: dist/* | |
artifactErrorsFailBuild: true | |
- name: Publish release to Test PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ |