Skip to content

feat: v2.0 of seamoon #98

feat: v2.0 of seamoon

feat: v2.0 of seamoon #98

Workflow file for this run

name: SeaMoon
on:
push:
tags:
- "*"
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build Front
run: |
cd web && npm install | true && npm run build && cp -r dist ../cmd/client/static
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Build
run: |
go mod tidy
go build -o seamoon -v --ldflags "-s -w -X github.com/DVKunion/SeaMoon/pkg/system/xlog.Version=${{github.ref_name}} -X github.com/DVKunion/SeaMoon/pkg/system/xlog.Commit=${{github.sha}}" cmd/main.go
- uses: actions/upload-artifact@v4
with:
path: seamoon