From 36ec22ec275ebda0b6b07b34ed02bbedeede895e Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Thu, 25 Jul 2024 00:19:37 -0400 Subject: Update Go Release workflow to include frontend build and copy step --- .github/workflows/go-release.yml | 26 ++++++++++++++++++++++++-- 1 file 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 -- cgit