test workflow

This commit is contained in:
somrat sorkar 2023-06-26 13:56:24 +06:00
parent da2f2c1716
commit aa471f8846

View File

@ -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