From 4aed6ea63ae93704b5d4cc07b528a0dd70a5d752 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 24 Mar 2024 14:41:32 -0500 Subject: initial commit; forked from https://github.com/Yukuro/hugo-theme-shell --- .github/workflows/only-build.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/only-build.yaml (limited to '.github/workflows/only-build.yaml') diff --git a/.github/workflows/only-build.yaml b/.github/workflows/only-build.yaml new file mode 100644 index 0000000..46ee60b --- /dev/null +++ b/.github/workflows/only-build.yaml @@ -0,0 +1,36 @@ +name: only-build +on: + workflow_dispatch: + branches: + - master + schedule: + - cron: '0 3 * * *' + +jobs: + build-hugo: + runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + extended: true + + - name: Setup Go + uses: actions/setup-go@v4.0.0 + with: + go-version: '^1.21' + + - name: SetUp Env + run: hugo new site testenv + + - name: Set theme + uses: actions/checkout@v3 + with: + path: ./testenv/themes/hugo-theme-shell + + - name: Build + run: hugo --minify -t hugo-theme-shell + working-directory: ./testenv -- cgit v1.2.3