Skip to content

⬆️ Bump python-semantic-release/python-semantic-release (#201) #215

⬆️ Bump python-semantic-release/python-semantic-release (#201)

⬆️ Bump python-semantic-release/python-semantic-release (#201) #215

Workflow file for this run

name: Release
on:
push:
branches: [ main ]
jobs:
release:
if: contains(github.event.head_commit.message, ':bookmark:')
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install poetry
run: pipx install poetry
- name: Semantic Release
id: release
uses: python-semantic-release/[email protected]
env:
TZ: 'Asia/Tokyo'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build dist packages
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}