From aa471f8846d3bb4928a1ffe12f713900f9ac129c Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Mon, 26 Jun 2023 13:56:24 +0600 Subject: [PATCH] test workflow --- .github/workflows/hugo.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index e5e0a6a..25916ae 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -19,8 +19,8 @@ env: HUGO_VERSION: "0.114.0" GO_VERSION: "1.16.3" NODE_VERSION: "18.15.0" - TINA_CLIENT_ID: ${{ secrets.TINA_CLIENT_ID }} - TINA_TOKEN: ${{ secrets.TINA_TOKEN }} + TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }} + TINA_TOKEN: ${{ vars.TINA_TOKEN }} jobs: # Build job @@ -54,10 +54,9 @@ jobs: - name: Publish to GitHub Pages run: | - hugo \ - --gc \ - --minify \ - --baseURL "${{ steps.pages.outputs.base_url }}/" + cd exampleSite; \ + hugo --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}/" || \ + hugo --themesDir ../.. --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}/" echo "SITE BUILT SUCCESSFULLY! LIVE AT: ${{ steps.pages.outputs.base_url }}" - name: Upload artifact