From f303a62338f1c6709c09e60659cad2580bb8bbdb Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Thu, 25 Jul 2024 01:54:02 -0400 Subject: [PATCH 1/7] Update Go Release workflow to include frontend build and copy step --- .github/workflows/go-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index f7a2ee5..afbb321 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -34,7 +34,7 @@ jobs: npm run build - name: Copy Frontend run: | - cp -r frontend-code/dist frontend/dist + cp -r frontend-code/dist ./frontend/dist - name: Set up Go uses: actions/setup-go@v5 From 3ca76af1c6fd7da4c2641cc3fa67c41ed75728ad Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Thu, 25 Jul 2024 02:05:38 -0400 Subject: [PATCH 2/7] Update Go Release workflow to include frontend build and copy step --- .github/workflows/go-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index afbb321..80c0291 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -34,7 +34,7 @@ jobs: npm run build - name: Copy Frontend run: | - cp -r frontend-code/dist ./frontend/dist + cp -r frontend-code/dist/ ./frontend/dist - name: Set up Go uses: actions/setup-go@v5 From 60d5b5f71b1e348e73ff4bdf048bfedf5ac82c27 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Thu, 25 Jul 2024 02:15:03 -0400 Subject: [PATCH 3/7] Update Go Release workflow to include frontend build and copy step --- .github/workflows/go-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index 80c0291..8308dad 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -34,8 +34,8 @@ jobs: npm run build - 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: From 350290d0e5bc884de6a0695767dcbb5249e1bbe2 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Thu, 25 Jul 2024 22:52:18 -0400 Subject: [PATCH 4/7] debug and list all files --- .github/workflows/go-release.yml | 45 +++++++++++++++++--------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index 8308dad..a0117a0 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -32,27 +32,30 @@ jobs: run: | cd frontend-code npm run build - - name: Copy Frontend + - name: List all folders 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 + 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: 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 From 10d4dc543e0a6550339d23e9b6c167993716cb4a Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Thu, 25 Jul 2024 23:01:23 -0400 Subject: [PATCH 5/7] Update Go Release workflow to include frontend build and copy step --- .github/workflows/go-release.yml | 48 +++++++++++++++++--------------- 1 file 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 From c65fae9c6cb86d18ad0fbd5c83aac9532317c98e Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Thu, 25 Jul 2024 23:06:37 -0400 Subject: [PATCH 6/7] Update Go Release workflow to fix frontend build and copy step --- .github/workflows/go-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index a63358d..d82200e 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -35,8 +35,8 @@ jobs: - name: Copy Frontend run: | - rm -rf ./frontend/dist/* - cp -r frontend-code/dist/ ./frontend/dist + rm -rf ./frontend/dist + cp -r frontend-code/dist ./frontend/dist - name: List all folders run: | ls -R From 51acd96a6f2de2e71c14c82eb8cc08bbf693c7e2 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Fri, 26 Jul 2024 01:08:34 -0400 Subject: [PATCH 7/7] Update Go Release workflow to fix frontend build and copy step --- .github/workflows/go-release.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index d82200e..ff14aeb 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -37,12 +37,7 @@ jobs: run: | rm -rf ./frontend/dist cp -r frontend-code/dist ./frontend/dist - - name: List all folders - run: | - ls -R - - name: List all folders 2 - run: | - ls -R ./frontend/dist + - name: Set up Go uses: actions/setup-go@v5 with: