From 5727f78276251c5e3838aa2fa4b12d091179289e Mon Sep 17 00:00:00 2001 From: EngiGu Date: Mon, 1 Jan 2024 20:59:02 +0800 Subject: [PATCH 1/2] Update release.yml --- .github/workflows/release.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48ebace..eb75654 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,6 @@ name: goreleaser on: -# push: -# # run only against tags -# tags: -# - '*' workflow_dispatch: # permissions: From f446d707a23d870fd6b5e49b609789825971db2f Mon Sep 17 00:00:00 2001 From: EngiGu Date: Mon, 1 Jan 2024 21:00:50 +0800 Subject: [PATCH 2/2] Update go.yml --- .github/workflows/go.yml | 60 ++++++++++++++++++++++++++++++---------- 1 file changed, 45 insertions(+), 15 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b0d3339..eb75654 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,27 +1,57 @@ -# This workflow will build a golang project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go - -name: Go +name: goreleaser on: - push: - branches: [ "dev" ] - pull_request: - branches: [ "dev" ] workflow_dispatch: # +permissions: + contents: write + # packages: write + # issues: write + jobs: build: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 + - name: Checkout repository + uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.20' + - name: Install npm dependencies + run: npm i + working-directory: web/ - - name: Build - run: go build -v . + - name: Run npm build + run: npm run build + working-directory: web/ + - name: Check build static + run: ls -la + working-directory: web/ + +# goreleaser: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 0 +# - run: git fetch --force --tags +# - uses: actions/setup-go@v3 +# with: +# go-version: '>=1.20.2' +# cache: true +# # More assembly might be required: Docker logins, GPG, etc. It all depends +# # on your needs. +# - uses: goreleaser/goreleaser-action@v4 +# with: +# # either 'goreleaser' (default) or 'goreleaser-pro': +# distribution: goreleaser +# version: latest +# args: release --clean +# env: +# GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} +# # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' +# # distribution: +# # GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} +# +#