featï: support embed build\
This commit is contained in:
@@ -1,57 +0,0 @@
|
||||
name: goreleaser
|
||||
|
||||
on:
|
||||
workflow_dispatch: #
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
# packages: write
|
||||
# issues: write
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install npm dependencies
|
||||
run: npm i
|
||||
working-directory: web/
|
||||
|
||||
- name: Run npm build
|
||||
run: npm run build
|
||||
working-directory: web/
|
||||
|
||||
- name: Check build static
|
||||
run: ls -la
|
||||
working-directory: web/
|
||||
|
||||
# goreleaser:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
# with:
|
||||
# fetch-depth: 0
|
||||
# - run: git fetch --force --tags
|
||||
# - uses: actions/setup-go@v3
|
||||
# with:
|
||||
# go-version: '>=1.20.2'
|
||||
# cache: true
|
||||
# # More assembly might be required: Docker logins, GPG, etc. It all depends
|
||||
# # on your needs.
|
||||
# - uses: goreleaser/goreleaser-action@v4
|
||||
# with:
|
||||
# # either 'goreleaser' (default) or 'goreleaser-pro':
|
||||
# distribution: goreleaser
|
||||
# version: latest
|
||||
# args: release --clean
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
|
||||
# # Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
|
||||
# # distribution:
|
||||
# # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
||||
#
|
||||
#
|
||||
@@ -14,8 +14,10 @@ permissions:
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
NODE_ENV: prod
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -26,7 +28,7 @@ jobs:
|
||||
working-directory: web/
|
||||
|
||||
- name: Run npm build
|
||||
run: npm run build
|
||||
run: export NODE_ENV=prod && npm run build
|
||||
working-directory: web/
|
||||
|
||||
- name: Check build static
|
||||
|
||||
Reference in New Issue
Block a user