Update Go Release workflow to include frontend build and copy step
This commit is contained in:
parent
350290d0e5
commit
10d4dc543e
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue