Skip to content

Commit 4d4b9bf

Browse files
committed
fix
1 parent f2f0df1 commit 4d4b9bf

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/hugo.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ jobs:
5656
sudo apt -y install texlive-latex-extra
5757
curl -fsSL https://github.com/jgm/pandoc/releases/download/3.1.9/pandoc-3.1.9-1-amd64.deb -o pandoc.deb
5858
sudo dpkg -i pandoc.deb
59-
- name: Build LaTeX
60-
run: |
61-
cmake -B build ${{github.workspace}}/specs/language
62-
cmake --build build --target html
63-
cmake --build build --target pdf
64-
cp build/hlsl.pdf ${{github.workspace}}/website/public/specs/
65-
cp build/html/* ${{github.workspace}}/website/public/specs/
6659
- name: Install Node.js dependencies
6760
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
6861
- name: Build with Hugo
@@ -74,6 +67,14 @@ jobs:
7467
hugo \
7568
--minify \
7669
--baseURL "${{ steps.pages.outputs.base_url }}/"
70+
- name: Build LaTeX
71+
run: |
72+
cmake -B build ${{github.workspace}}/specs/language
73+
cmake --build build --target html
74+
cmake --build build --target pdf
75+
mkdir -p ${{github.workspace}}/website/public/specs/
76+
cp build/hlsl.pdf ${{github.workspace}}/website/public/specs/
77+
cp build/html/* ${{github.workspace}}/website/public/specs/
7778
- name: Upload artifact
7879
uses: actions/upload-pages-artifact@v3
7980
with:

0 commit comments

Comments
 (0)