summaryrefslogtreecommitdiff
path: root/.forgejo/workflows/build.yml
blob: cbb25ad25c22203931aee58b2aecbc0c295f0378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build Blog

on:
  push:
    branches: [ main, master ]
  pull_request:
    branches: [ main, master ]

jobs:
  build:
    runs-on: ubuntu-latest
    
    steps:
    - name: Checkout repository
      uses: actions/checkout@v4
      
    # evil hack to get makko
    # mb write separate script for this?
    - name: Setup Makko
      run: |
        curl -A "actions (compatible; Forgejo Actions; https://code.wejust.rest)" -o /usr/local/bin/makko https://our.starlightnet.work/transient/makko%20releases/makko%202.1.3-prerelease/makko-x86_64-linux
        chmod +x /usr/local/bin/makko

    - name: Build blog
      run: |
        makko .
        
    - name: Upload artifacts
      uses: actions/upload-artifact@v3
      with:
        name: blog-site
        path: web/
        retention-days: 30

    #TODO: push to releases? deploy?