Skip to content

bump: version 1.0.0 → 1.1.0 #33

bump: version 1.0.0 → 1.1.0

bump: version 1.0.0 → 1.1.0 #33

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*.*.*"
jobs:
release:
if: "startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
permissions:
contents: write
name: "Release to github"
steps:
- uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
publish:
if: "startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache-dependency-path: pyproject.toml
- uses: actions/cache@v3
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-publish
- name: Install build dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pip install build
- name: Build distribution
run: python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"