Skip to content

Commit 8d8d9af

Browse files
update workflow
1 parent 8d83efc commit 8d8d9af

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.workflow/hugo.yaml renamed to .github/workflows/hugo.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Deploy LiaScript-Web-Site to Pages
33
on:
44
# Runs on pushes targeting the default branch
55
push:
6-
branches: ["development"]
6+
branches:
7+
- development
78

89
# Allows you to run this workflow manually from the Actions tab
910
workflow_dispatch:
@@ -47,18 +48,19 @@ jobs:
4748
uses: actions/configure-pages@v5
4849
- name: Install Node.js dependencies
4950
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
51+
- name: Install PostCSS, Tailwind and Autoprefixer
52+
run: npm install postcss postcss-cli tailwindcss autoprefixer
5053
- name: Build with Hugo
5154
env:
5255
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
5356
HUGO_ENVIRONMENT: production
54-
run: |
55-
hugo \
56-
--minify \
57-
--baseURL "${{ steps.pages.outputs.base_url }}/"
57+
run: "npm run build"
5858
- name: Upload artifact
5959
uses: actions/upload-pages-artifact@v3
6060
with:
6161
path: ./public
62+
- name: show files
63+
run: ls -la public
6264

6365
# Deployment job
6466
#deploy:

0 commit comments

Comments
 (0)