Skip to content

Commit 5f590a9

Browse files
chore: improved minify:js that handles failures
1 parent 0784b96 commit 5f590a9

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

.github/workflows/hugo.yaml

+23-11
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,11 @@ jobs:
5454
run: sudo apt-get install python3
5555
- name: Build World-Map
5656
run: "cd world-map && python3 generate.py"
57-
#- name: Build with Hugo
58-
# env:
59-
# HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
60-
# HUGO_ENVIRONMENT: production
61-
# run: "npm run build"
62-
#- name: Upload artifact
63-
# uses: actions/upload-pages-artifact@v3
64-
# with:
65-
# path: ./public
57+
- name: Build with Hugo
58+
env:
59+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
60+
HUGO_ENVIRONMENT: production
61+
run: "npm run build"
6662

6763
- name: Set ELM_HOME
6864
run: echo "ELM_HOME=${GITHUB_WORKSPACE}/.elm" >> $GITHUB_ENV
@@ -85,9 +81,25 @@ jobs:
8581
rm -rf elm-stuff .parcel-cache
8682
- name: LiaScript - build
8783
run: |
88-
npm install -g elm-optimize-level-2
8984
cd LiaScript
90-
make all2
85+
make all2 KEY="${{ secrets.RESPONSIVEVOICE_KEY }}"
86+
mkdir -p public/course
87+
cp -r dist/* public/course/
88+
89+
- name: LiaScript - nightly
90+
run: |
91+
cd LiaScript
92+
git pull origin feat/minimizeNavigation
93+
git checkout feat/minimizeNavigation
94+
make all2 KEY="${{ secrets.RESPONSIVEVOICE_KEY }}"
95+
mkdir -p public/nightly
96+
rm -f dist/sw.js
97+
cp -r dist/* public/nightly/
98+
99+
#- name: Upload artifact
100+
# uses: actions/upload-pages-artifact@v3
101+
# with:
102+
# path: ./public
91103

92104
# Deployment job
93105
#deploy:

0 commit comments

Comments
 (0)