Skip to content

Merge pull request #10 from mirsazzathossain/dev #18

Merge pull request #10 from mirsazzathossain/dev

Merge pull request #10 from mirsazzathossain/dev #18

Workflow file for this run

name: Continuous Distribution (CD)
on:
push:
branches:
- main
jobs:
release:
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit: true
tag: true
changelog: true
- name: Set up the environment
uses: ./.github/actions/setup-python-env
- name: Build package
run: uvx --from build pyproject-build --installer uv
- name: Upload build artifacts for GitHub Release
uses: actions/upload-artifact@v4
if: steps.release.outputs.released == 'true'
with:
name: build-artifacts
path: |
dist/*.whl
dist/*.tar.gz
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/[email protected]
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package distributions to PyPI
if: steps.release.outputs.released == 'true'
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Deploy documentation
if: steps.release.outputs.released == 'true'
run: uv run mkdocs gh-deploy --force