From db1c275564e62a61ac09361cab7a6d761b08b455 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Mon, 31 Jan 2022 11:14:01 +0800 Subject: [PATCH] :wrench: Chore: add build workflows --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..2c576a4b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: Hugo build check +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: +jobs: + Actions-Hugo-Check: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v2 + with: + submodules: recursive # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: latest + extended: true + - name: Build Hugo static files + run: hugo -v --source=exampleSite --themesDir ../.. --gc