Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: run goreleaser on push tags (#1509)
Danny Xu5b9542ab94b4
diff --git a/.github/workflows/build-release-image.yml b/.github/workflows/build-release-image.ymlindex 0a82390c68..15b1133d6b 100644--- a/.github/workflows/build-release-image.yml+++ b/.github/workflows/build-release-image.yml@@ -1,4 +1,4 @@-name: build release image and push to docker hub+name: build release image and push to docker hub.on:push:@@ -54,31 +54,3 @@ jobs:BUILD_USER=${{ env.BUILD_USER }}- name: Image digestrun: echo "Successfully pushed bytebase/bb:${{ env.RELEASE_VERSION }} ${{ steps.bb_build.outputs.digest }}"-- release-binary:- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v2- - uses: pnpm/[email protected]- with:- version: 6.10.0- - uses: actions/setup-node@v3- with:- node-version: "14"- cache: pnpm- cache-dependency-path: "frontend/pnpm-lock.yaml"- - run: pnpm install --frozen-lockfile- working-directory: frontend- - run: pnpm release- working-directory: frontend- - name: Extract version- run: git tag ${GITHUB_REF_NAME#release/v}- - uses: actions/setup-go@v2- with:- go-version: 1.16- - name: Release- uses: goreleaser/goreleaser-action@v2- with:- args: release- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.ymlnew file mode 100644index 0000000000..766b79c033--- /dev/null+++ b/.github/workflows/release-binary.yml@@ -0,0 +1,35 @@+name: build release binaries and create release notes.++on:+ push:+ tags:+ - "*.*.*"++jobs:+ release-binary:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v2+ - uses: pnpm/[email protected]+ with:+ version: 6.10.0+ - uses: actions/setup-node@v3+ with:+ node-version: "14"+ cache: pnpm+ cache-dependency-path: "frontend/pnpm-lock.yaml"+ - run: pnpm install --frozen-lockfile+ working-directory: frontend+ - run: pnpm release+ working-directory: frontend+ - name: Extract version+ run: git tag ${GITHUB_REF_NAME#release/v}+ - uses: actions/setup-go@v2+ with:+ go-version: 1.16+ - name: Release+ uses: goreleaser/goreleaser-action@v2+ with:+ args: release+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}