From a5f743bc1d2595116c446f589bfb0ccbf1c81975 Mon Sep 17 00:00:00 2001 From: bitliu Date: Fri, 8 Sep 2023 15:45:15 +0800 Subject: [PATCH] :memo: Docs Signed-off-by: bitliu --- .github/workflows/hugo-docs.yaml | 44 ++++++++++++++++++++++++++++++++ site | 1 + 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/hugo-docs.yaml create mode 160000 site diff --git a/.github/workflows/hugo-docs.yaml b/.github/workflows/hugo-docs.yaml new file mode 100644 index 000000000000..6c179c841054 --- /dev/null +++ b/.github/workflows/hugo-docs.yaml @@ -0,0 +1,44 @@ +name: Hugo Docs +on: + push: + branches: + - "main" + - "release/v*" + paths-ignore: + - "**/*.png" + pull_request: + branches: + - "main" + - "release/v*" + paths-ignore: + - "**/*.png" + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Git checkout + uses: actions/checkout@v3 + with: + submodules: true + + - name: Setup hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + extended: true + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: '18' + - run: cd site && npm install + - run: cd site && npm run build:production + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./site/public diff --git a/site b/site new file mode 160000 index 000000000000..2cdb54043031 --- /dev/null +++ b/site @@ -0,0 +1 @@ +Subproject commit 2cdb54043031e0a88789be46f1ae2ae089bd6054