2024-08-19 22:37:57 +02:00
|
|
|
name: build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
github-server-url: 'https://git.tijl.dev'
|
|
|
|
|
2024-08-21 23:49:31 +02:00
|
|
|
- name: Set up node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
|
2024-08-22 00:14:56 +02:00
|
|
|
- name: Install npm
|
|
|
|
run: npm install
|
2024-08-22 00:44:48 +02:00
|
|
|
|
2024-08-19 22:37:57 +02:00
|
|
|
- name: Build css
|
|
|
|
run: npm run build:css
|
|
|
|
|
|
|
|
- name: Build js
|
|
|
|
run: npm run build
|
|
|
|
|
2024-08-20 11:49:05 +02:00
|
|
|
- name: Set up Go
|
2024-08-22 00:44:48 +02:00
|
|
|
uses: actions/setup-go@v5
|
2024-08-20 11:49:05 +02:00
|
|
|
with:
|
|
|
|
go-version: '1.22'
|
|
|
|
|
2024-08-19 22:37:57 +02:00
|
|
|
- name: Build
|
2024-08-22 13:47:16 +02:00
|
|
|
run: go build -o tijldev cmd/server/main.go
|
|
|
|
|
2024-08-19 22:37:57 +02:00
|
|
|
|