Embed fronend into the binary. add support for macos

This commit is contained in:
Mo Tarbin 2024-07-25 00:41:09 -04:00
commit 0844226fee
2 changed files with 23 additions and 1 deletions

View File

@ -13,6 +13,28 @@ jobs:
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 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 - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5

View File

@ -21,7 +21,7 @@ builds:
goos: goos:
- linux - linux
# - windows # - windows
# - darwin - darwin
archives: archives:
- format: tar.gz - format: tar.gz