aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/go-release.yml26
1 files changed, 24 insertions, 2 deletions
diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml
index bbf1b1c..9a607c7 100644
--- a/.github/workflows/go-release.yml
+++ b/.github/workflows/go-release.yml
@@ -5,14 +5,36 @@ permissions:
on:
push:
- tags:
- - 'v*'
+ branches:
+ - dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
+ - name: Checkout Frontebd
+ uses: actions/checkout@v4
+ with:
+ repository: 'donetick/donetick-frontend'
+ token: ${{ secrets.GITHUB_TOKEN }}
+ path: 'frontend'
+ # build frontend
+ - name: Install Node.js
+ uses: actions/setup-node@v2
+ with:
+ node-version: '16'
+ - name: Install Dependencies
+ run: |
+ cd frontend
+ npm install
+ - name: Build Frontend
+ run: |
+ cd frontend
+ npm run build
+ - name: Copy Frontend
+ run: |
+ cp -r frontend/dist core/frontend/dist
- name: Set up Go
uses: actions/setup-go@v5