From c2098c897140ddb242328703cdaab17c19628534 Mon Sep 17 00:00:00 2001 From: Yu Chen Date: Tue, 28 Jun 2022 08:27:42 +0800 Subject: [PATCH] add github workflow: deployguide.yml --- .github/workflow/deployguide.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflow/deployguide.yml diff --git a/.github/workflow/deployguide.yml b/.github/workflow/deployguide.yml new file mode 100644 index 0000000..5d3c6d7 --- /dev/null +++ b/.github/workflow/deployguide.yml @@ -0,0 +1,35 @@ +name: Deploy Guide + +on: + push: + branches: [main] + +jobs: + deploy-doc: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: "3.8.10" + - name: Install dependencies + run: | + cd guide + pip install -r requirements.txt + + - name: build doc + run: | + cd guide + make html + + - name: create .nojekyll + run: | + cd guide + touch build/html/.nojekyll + + - name: Push to gh-pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./guide/build/html