mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-30 12:29:30 +08:00
34 lines
752 B
YAML
34 lines
752 B
YAML
on:
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
push:
|
|
branches:
|
|
- dev
|
|
|
|
name: Build Test
|
|
|
|
jobs:
|
|
build-linux-binary:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v3
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '18.14'
|
|
- name: Build Web
|
|
id: build_frontend
|
|
run: |
|
|
cd frontend && npm install && npm run build:pro
|
|
env:
|
|
NODE_OPTIONS: --max-old-space-size=8192
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: '1.20.x'
|
|
- name: Build Server
|
|
uses: goreleaser/goreleaser-action@v4
|
|
with:
|
|
args: release --snapshot --clean |