Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI][docs] Fix docs CI #130

Closed
wants to merge 14 commits into from
21 changes: 14 additions & 7 deletions .github/workflows/sphinx_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
- 'docs/**'
- 'tutorials/**'

permissions:
contents: write

jobs:
build:
# This job runs on Linux
Expand All @@ -26,9 +29,10 @@ jobs:
image: chhzh123/hcl-dialect:llvm-18.x-py3.12

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
# - name: Patch LLVM Project
# run: |
# cp externals/llvm_patch /root/llvm-project
Expand Down Expand Up @@ -66,19 +70,22 @@ jobs:
name: DocumentationHTML
path: docs/build/html/
- name: Install rsync
shell: bash
run: |
apt-get update && apt-get install -y rsync
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Deploy docs
uses: JamesIves/github-pages-deploy-action@releases/v3
if: github.event_name == 'push'
uses: JamesIves/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html
# https://github.com/JamesIves/github-pages-deploy-action/issues/1179#issuecomment-1209272847
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/build/html
git-config-name: chhzh123
git-config-email: [email protected]
- run: touch docs/build/html/.nojekyll
- name: Deploy docs to website
uses: cpina/github-action-push-to-another-repository@main
if: github.event_name == 'push'
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
Expand Down
Loading