From 10d4dc543e0a6550339d23e9b6c167993716cb4a Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Thu, 25 Jul 2024 23:01:23 -0400 Subject: Update Go Release workflow to include frontend build and copy step --- .github/workflows/go-release.yml | 48 ++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 22 deletions(-) (limited to '.github/workflows') 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 -- cgit