bump version 0.0.5 -> 0.0.6 #8
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: Release | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
environment: pypi-publish | |
permissions: | |
# for creating github release | |
contents: write | |
# for trusted publishing | |
id-token: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: '3.11' | |
cache: true | |
- name: Install dependencies | |
run: pdm sync -v --dev | |
- name: Run tests | |
run: pdm run pytest tests/ | |
- name: Create GitHub release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Release ${{ github.ref }} | |
tag_name: ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Build and publish to PyPI | |
run: | | |
pdm publish |