We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e88181 commit b6d166aCopy full SHA for b6d166a
.github/workflows/pr.yml
@@ -0,0 +1,26 @@
1
+name: Hugo
2
+on: [pull_request]
3
+
4
+jobs:
5
+ build:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@v4
9
+ - name: configure Hugo
10
+ run: |
11
+ set -x &&
12
+ echo "HUGO_VERSION=$(sed -n 's/^ *hugo_version: *//p' <hugo.yml)" >>$GITHUB_ENV
13
+ - name: install Hugo ${{ env.HUGO_VERSION }}
14
15
16
+ curl -Lo /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v$HUGO_VERSION/hugo_extended_${HUGO_VERSION}_linux-amd64.deb &&
17
+ sudo dpkg -i /tmp/hugo.deb
18
+ - name: run Hugo to build the pages
19
+ run: hugo
20
+ - name: build tar archive
21
+ run: cd public && tar czvf ../pages.tar.gz *
22
+ - name: Upload build artifact
23
+ uses: actions/upload-artifact@v4
24
+ with:
25
+ name: pages
26
+ path: pages.tar.gz
0 commit comments