diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-25 00:41:09 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-07-25 00:41:09 -0400 |
commit | 0844226fee5f12eb0cfbef309fff4747391a6351 (patch) | |
tree | 7e01866915952f0e3e064c1a0d24a475aaff61ac /.github/workflows | |
parent | cafc9b6e22d160968ecb37fc8bc2ef82652fa36e (diff) | |
parent | 5459dc27888047ec10a3bf26c99c7b24753b1a4c (diff) | |
download | donetick-0844226fee5f12eb0cfbef309fff4747391a6351.tar.gz donetick-0844226fee5f12eb0cfbef309fff4747391a6351.tar.bz2 donetick-0844226fee5f12eb0cfbef309fff4747391a6351.zip |
Embed fronend into the binary. add support for macos
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/go-release.yml | 22 |
1 files changed, 22 insertions, 0 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 |