Skip to content

Commit fc8975e

Browse files
update workflow
1 parent 8d83efc commit fc8975e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

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

+12-6
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,19 +48,24 @@ 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
53+
- name: Install Python
54+
run: sudo apt-get install python3
55+
- name: Build World-Map
56+
run: "cd world-map && python3 generate.py"
5057
- name: Build with Hugo
5158
env:
5259
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
5360
HUGO_ENVIRONMENT: production
54-
run: |
55-
hugo \
56-
--minify \
57-
--baseURL "${{ steps.pages.outputs.base_url }}/"
61+
run: "npm run build"
5862
- name: Upload artifact
5963
uses: actions/upload-pages-artifact@v3
6064
with:
6165
path: ./public
62-
66+
- name: show files
67+
run: ls -la public
68+
6369
# Deployment job
6470
#deploy:
6571
# environment:

0 commit comments

Comments
 (0)