From 9d1c3004d50ab5bb4cf830be766ec95df2a37fa1 Mon Sep 17 00:00:00 2001 From: engigu Date: Mon, 1 Jan 2024 20:55:09 +0800 Subject: [PATCH] update action --- .github/workflows/release.yml | 67 ++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87e1dc7..48ebace 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,11 @@ name: goreleaser on: - push: - # run only against tags - tags: - - '*' +# push: +# # run only against tags +# tags: +# - '*' + workflow_dispatch: # permissions: contents: write @@ -20,41 +21,41 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Change directory to web project - run: cd web/ - - name: Install npm dependencies run: npm i + working-directory: web/ - 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 }} - - +# 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 }} +# +#