Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore(release): 1.0.1 #18

chore(release): 1.0.1

chore(release): 1.0.1 #18

Workflow file for this run

name: Release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
release:
name: Semantic Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
outputs:
released: ${{ steps.release.outputs.released }}
tag: ${{ steps.release.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v9
with:
github_token: ${{ secrets.RELEASE_TOKEN }}
publish:
name: Publish to PyPI
needs: release
if: needs.release.outputs.released == 'true'
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.release.outputs.tag }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Build package
run: |
pip install build
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1