Update Go Release workflow to include frontend build and copy step

This commit is contained in:
Mo Tarbin 2024-07-25 23:01:23 -04:00
parent 350290d0e5
commit 10d4dc543e
1 changed files with 26 additions and 22 deletions

View File

@ -32,30 +32,34 @@ jobs:
run: | run: |
cd frontend-code cd frontend-code
npm run build npm run build
- name: Copy Frontend
run: |
rm -rf ./frontend/dist/*
cp -r frontend-code/dist/ ./frontend/dist
- name: List all folders - name: List all folders
run: | run: |
ls -R ls -R
# - name: Copy Frontend - name: List all folders 2
# run: | run: |
# rm -rf ./frontend/dist/* ls -R ./frontend/dist
# cp -r frontend-code/dist/ ./frontend/dist - name: Set up Go
# - name: Set up Go uses: actions/setup-go@v5
# uses: actions/setup-go@v5 with:
# with: go-version: 1.22
# go-version: 1.22 check-latest: true
# check-latest: true cache: true
# cache: true
# - name: Run GoReleaser - name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v6 uses: goreleaser/goreleaser-action@v6
# with: with:
# # either 'goreleaser' (default) or 'goreleaser-pro' # either 'goreleaser' (default) or 'goreleaser-pro'
# distribution: goreleaser distribution: goreleaser
# # 'latest', 'nightly', or a semver # 'latest', 'nightly', or a semver
# version: latest version: latest
# args: release --clean --skip=validate args: release --clean --skip=validate
# env: env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}