Skip to content

feat: add publish pypi workflow #49

feat: add publish pypi workflow

feat: add publish pypi workflow #49

Workflow file for this run

name: CD
on:
pull_request: {}
push:
branches:
- main
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
jobs:
build-test:
uses: ./.github/workflows/build-test.yml
deploy:
needs: [build-test]
if: github.ref_name == 'main'
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy artifact to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4