Skip to content

Commit

Permalink
Actions: build web part before goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
pijng committed Jan 28, 2024
1 parent b371480 commit 9e88120
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,25 @@ permissions:
contents: write

jobs:
build-web:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install Dependencies
run: npm install --prefix web

- name: Build Web Part
run: npm run build --prefix web
goreleaser:
needs: build-web
runs-on: ubuntu-latest
steps:
-
Expand All @@ -20,6 +38,8 @@ jobs:
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '>=1.21.0'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# - go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
# - go generate ./...
builds:
- env:
- CGO_ENABLED=0
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module moonlogs

go 1.20
go 1.21

require (
github.com/glebarez/go-sqlite v1.22.0
Expand Down

0 comments on commit 9e88120

Please sign in to comment.