Skip to content

废止 YiriMirai 项目 #73

废止 YiriMirai 项目

废止 YiriMirai 项目 #73

Workflow file for this run

# deploy on pages
name: pdoc
permissions:
contents: write
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9.16"
- name: poetry install
run: |
pip install poetry
export POETRY_VIRTUALENVS_CREATE=false
poetry install -n
- name: run pdoc
run: |
pdoc --version
pdoc --html -o ./docs mirai
- name: prepare vercel project
run: |
mv ./docs/mirai/* ./docs/
# - uses: actions/setup-node@v1
# with:
# node-version: "14.x"
# - name: install vercel cli
# run: npm i vercel
# - name: deploy
# run: |
# vercel link "$PWD/docs/yiri-mirai-api" --confirm --token=${{ secrets.VERCEL_TOKEN }}
# vercel deploy "$PWD/docs/yiri-mirai-api" --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.