From 34127c9170ecf6fb2b274a0b2ade96088b551a47 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 27 Mar 2022 19:35:36 +0530 Subject: [PATCH] Sync GH workflows --- .github/workflows/build.yml | 7 ++++++- .github/workflows/gh-pages.yml | 14 ++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a7bc88e..2da8f8f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,11 @@ on: - exampleSite workflow_dispatch: # manual run + inputs: + hugoVersion: + description: "Hugo Version" + required: false + default: "0.83.0" jobs: build: @@ -26,7 +31,7 @@ jobs: - name: Setup hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: 'latest' + hugo-version: "${{ github.event.inputs.hugoVersion }}" - name: Build run: hugo --buildDrafts --gc --verbose --minify diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 45b21867..75033f82 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -3,13 +3,19 @@ name: Build GH-Pages on: push: paths-ignore: - - 'images/**' - - 'LICENSE' - - 'README.md' + - "images/**" + - "LICENSE" + - "README.md" branches: + - master - exampleSite workflow_dispatch: # manual run + inputs: + hugoVersion: + description: "Hugo Version" + required: false + default: "0.83.0" jobs: deploy: @@ -29,7 +35,7 @@ jobs: - name: Setup hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: 'latest' + hugo-version: "${{ github.event.inputs.hugoVersion }}" - name: Build run: hugo --buildDrafts --gc --verbose --minify