From 3862d29e36246ed7c5985af0a08efe2ea1ddb758 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Sat, 4 Sep 2021 22:43:37 +0800 Subject: [PATCH] feat: add github actions --- .github/workflows/wangdoc.yml | 36 +++++++++++++++++++++++++++++++++++ loppo.yml | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/wangdoc.yml diff --git a/.github/workflows/wangdoc.yml b/.github/workflows/wangdoc.yml new file mode 100644 index 0000000..92a4f8c --- /dev/null +++ b/.github/workflows/wangdoc.yml @@ -0,0 +1,36 @@ +name: Clang tutorial CI +on: + push: + branches: + - main + +jobs: + page-generator: + name: Generating pages + runs-on: ubuntu-18.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + persist-credentials: false + - name: Setup Node.js + uses: actions/setup-node@main + with: + node-version: '14' + - name: Install dependencies + run: npm install + - name: Build pages + run: npm run build + - name: Deploy to website + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + GIT_CONFIG_NAME: wangdoc-bot + GIT_CONFIG_EMAIL: yifeng.ruan@gmail.com + REPOSITORY_NAME: wangdoc/website + ACCESS_TOKEN: ${{ secrets.WANGDOC_BOT_TOKEN }} + BASE_BRANCH: main + BRANCH: master # The branch the action should deploy to. + FOLDER: dist # The folder the action should deploy. + TARGET_FOLDER: dist/clang + CLEAN: true # Automatically remove deleted files from the deploy branch + COMMIT_MESSAGE: update diff --git a/loppo.yml b/loppo.yml index 161b8aa..a15e6ef 100644 --- a/loppo.yml +++ b/loppo.yml @@ -6,3 +6,5 @@ customization: false themeDir: loppo-theme direction: ltr id: clang +hasComments: true +isTutorial: true