templates for self-hosting game jams (or any other kind of jam tbh)
1name: CI
2
3on:
4 push:
5 branches:
6 - master
7 pull_request:
8 branches:
9 - master
10
11jobs:
12 build:
13 name: Build
14 runs-on: ubuntu-latest
15
16 steps:
17 - name: Checkout
18 uses: actions/checkout@v5
19
20 - name: Setup Hugo
21 uses: peaceiris/actions-hugo@v3.0.0
22 with:
23 hugo-version: latest
24
25 - name: Build local ./exampleSite
26 run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://janraasch.github.io/hugo-bearblog/
27
28 - name: Upload Artifact
29 uses: actions/upload-artifact@v4
30 with:
31 name: build
32 path: ./public
33
34 deploy:
35 needs: build
36 name: Deploy to GitHub Pages
37 runs-on: ubuntu-latest
38 if: github.event_name == 'push'
39 steps:
40 - uses: actions/checkout@v5
41 - uses: actions/download-artifact@v5
42 with:
43 name: build
44 path: ./public
45 - uses: peaceiris/actions-gh-pages@v4.0.0
46 with:
47 github_token: ${{ secrets.GITHUB_TOKEN }}
48 publish_dir: ./public