diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-25 00:19:37 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-25 00:19:37 -0400 |
commit | 36ec22ec275ebda0b6b07b34ed02bbedeede895e (patch) | |
tree | 16fb2c33bacd8e1977830d7c38d394d3be17d8b8 | |
parent | 71f8dfb26c9bee7721682dbe230e8a0137af2ce6 (diff) | |
download | donetick-36ec22ec275ebda0b6b07b34ed02bbedeede895e.tar.gz donetick-36ec22ec275ebda0b6b07b34ed02bbedeede895e.tar.bz2 donetick-36ec22ec275ebda0b6b07b34ed02bbedeede895e.zip |
Update Go Release workflow to include frontend build and copy step
-rw-r--r-- | .github/workflows/go-release.yml | 26 |
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 |