Skip to content

feat: init db demo

feat: init db demo #72

Workflow file for this run

name: SeaMoon
on:
push:
tags:
- "*"
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clone seamoon-web repository
uses: actions/checkout@v2
with:
repository: 'DVKunion/seamoon-web'
ref: 'main' # Or any other branch or tag you want to checkout
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build the project
run: |
npm run build
cp -r dist cmd/client/static
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Build
run: go build --ldflags "-s -w -X github.com/DVKunion/SeaMoon/pkg/consts.Version=${{github.ref_name}} -X github.com/DVKunion/SeaMoon/pkg/consts.Commit=${{GITHUB_SHA}}" cmd/main.go

Check failure on line 35 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / SeaMoon

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 35, Col: 14): Unrecognized named-value: 'GITHUB_SHA'. Located at position 1 within expression: GITHUB_SHA