Skip to content

修改权限策略 #416

修改权限策略

修改权限策略 #416

Workflow file for this run

# https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml
name: Doc Build
on:
push:
branch: ['master']
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r doc/requirements.txt
- name: Build and publish
run: |
cd ./doc && make html && cd ../
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: doc # The branch the action should deploy to.
folder: doc/build/html # The folder the action should deploy.