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