ucl/.forgejo/workflows/build.yaml

32 lines
670 B
YAML

name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.22.4
- uses: actions/setup-node@v4
with:
node-version: 21.1
- name: Installing Netlify
run: |
npm install netlify-cli -g
- name: Build
run: |
make test
- name: Site
run: |
make site-deploy
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}