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" HUGO_VERSION: "0.114.0"
GO_VERSION: "1.16.3" GO_VERSION: "1.16.3"
NODE_VERSION: "18.15.0" NODE_VERSION: "18.15.0"
TINA_CLIENT_ID: ${{ secrets.TINA_CLIENT_ID }} TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }}
TINA_TOKEN: ${{ secrets.TINA_TOKEN }} TINA_TOKEN: ${{ vars.TINA_TOKEN }}
jobs: jobs:
# Build job # Build job
@ -54,10 +54,9 @@ jobs:
- name: Publish to GitHub Pages - name: Publish to GitHub Pages
run: | run: |
hugo \ cd exampleSite; \
--gc \ hugo --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}/" || \
--minify \ hugo --themesDir ../.. --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
--baseURL "${{ steps.pages.outputs.base_url }}/"
echo "SITE BUILT SUCCESSFULLY! LIVE AT: ${{ steps.pages.outputs.base_url }}" echo "SITE BUILT SUCCESSFULLY! LIVE AT: ${{ steps.pages.outputs.base_url }}"
- name: Upload artifact - name: Upload artifact