aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/go-release.yml22
-rw-r--r--.goreleaser.yaml2
2 files changed, 23 insertions, 1 deletions
diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml
index bbf1b1c..f7a2ee5 100644
--- a/.github/workflows/go-release.yml
+++ b/.github/workflows/go-release.yml
@@ -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
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 3a008a5..30c2e88 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -21,7 +21,7 @@ builds:
goos:
- linux
# - windows
- # - darwin
+ - darwin
archives:
- format: tar.gz