Embed fronend into the binary. add support for macos
This commit is contained in:
commit
0844226fee
|
@ -13,6 +13,28 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
- name: Checkout Frontend
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'donetick/frontend'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path: 'frontend-code'
|
||||
# build frontend
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
cd frontend-code
|
||||
npm install
|
||||
- name: Build Frontend
|
||||
run: |
|
||||
cd frontend-code
|
||||
npm run build
|
||||
- name: Copy Frontend
|
||||
run: |
|
||||
cp -r frontend-code/dist frontend/dist
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
|
|
|
@ -21,7 +21,7 @@ builds:
|
|||
goos:
|
||||
- linux
|
||||
# - windows
|
||||
# - darwin
|
||||
- darwin
|
||||
|
||||
archives:
|
||||
- format: tar.gz
|
||||
|
|
Loading…
Reference in New Issue