aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-25 23:01:23 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-25 23:01:23 -0400
commit10d4dc543e0a6550339d23e9b6c167993716cb4a (patch)
tree2299d5fc152c65a3827931a9025087f2cafea3c2
parent350290d0e5bc884de6a0695767dcbb5249e1bbe2 (diff)
downloaddonetick-10d4dc543e0a6550339d23e9b6c167993716cb4a.tar.gz
donetick-10d4dc543e0a6550339d23e9b6c167993716cb4a.tar.bz2
donetick-10d4dc543e0a6550339d23e9b6c167993716cb4a.zip
Update Go Release workflow to include frontend build and copy step
-rw-r--r--.github/workflows/go-release.yml48
1 files changed, 26 insertions, 22 deletions
diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml
index a0117a0..a63358d 100644
--- a/.github/workflows/go-release.yml
+++ b/.github/workflows/go-release.yml
@@ -32,30 +32,34 @@ jobs:
run: |
cd frontend-code
npm run build
+
+ - name: Copy Frontend
+ run: |
+ rm -rf ./frontend/dist/*
+ cp -r frontend-code/dist/ ./frontend/dist
- name: List all folders
run: |
ls -R
- # - name: Copy Frontend
- # run: |
- # rm -rf ./frontend/dist/*
- # cp -r frontend-code/dist/ ./frontend/dist
- # - name: Set up Go
- # uses: actions/setup-go@v5
- # with:
- # go-version: 1.22
- # check-latest: true
- # cache: true
+ - name: List all folders 2
+ run: |
+ ls -R ./frontend/dist
+ - name: Set up Go
+ uses: actions/setup-go@v5
+ with:
+ go-version: 1.22
+ check-latest: true
+ cache: true
- # - name: Run GoReleaser
- # uses: goreleaser/goreleaser-action@v6
- # with:
- # # either 'goreleaser' (default) or 'goreleaser-pro'
- # distribution: goreleaser
- # # 'latest', 'nightly', or a semver
- # version: latest
- # args: release --clean --skip=validate
- # env:
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- # # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
- # # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
+ - name: Run GoReleaser
+ uses: goreleaser/goreleaser-action@v6
+ with:
+ # either 'goreleaser' (default) or 'goreleaser-pro'
+ distribution: goreleaser
+ # 'latest', 'nightly', or a semver
+ version: latest
+ args: release --clean --skip=validate
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
+ # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
\ No newline at end of file