tijl.dev-core/.gitea/workflows/build.yaml

46 lines
761 B
YAML
Raw Normal View History

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-21 23:49:31 +02:00
- name: Generate templ code
uses: capthiron/templ-generator-action@v1
with:
commit: "false"
setup-go: "false"
go-version: "1.22"
2024-08-19 22:37:57 +02:00
- name: Build
run: go build -v ./...