[syft]bump version #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD - Docs | |
on: | |
workflow_dispatch: | |
inputs: | |
none: | |
description: "Deploy Syft Documentation" | |
required: false | |
pull_request: | |
branches: [dev] | |
paths: [docs/] | |
push: | |
branches: [dev] | |
paths: [docs/] | |
jobs: | |
cd-docs: | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tox | |
run: | | |
pip install -U tox | |
- name: Build the docs | |
run: | | |
tox -e syft.docs | |
- name: Deploy the docs | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: docs/build/html | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |