Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: Revert "chore: update release draft action" (#7098)
Danny Xub858fc8baf9f
diff --git a/.github/workflows/build-artifacts-and-draft-release.yml b/.github/workflows/build-artifacts-and-draft-release.ymlindex 30d7264a38..8d7879a934 100644--- a/.github/workflows/build-artifacts-and-draft-release.yml+++ b/.github/workflows/build-artifacts-and-draft-release.yml@@ -6,8 +6,73 @@ on:- "*.*.*"jobs:+ build-linux-binary:+ runs-on: self-hosted+ steps:+ - uses: actions/checkout@v3+ - uses: pnpm/[email protected]+ with:+ version: 8.6.0+ - uses: actions/setup-node@v3+ with:+ node-version: "18"+ cache: pnpm+ cache-dependency-path: "frontend/pnpm-lock.yaml"+ - run: pnpm install --frozen-lockfile+ working-directory: frontend+ - run: pnpm release+ working-directory: frontend+ - uses: actions/setup-go@v4+ with:+ go-version: 1.20.1+ check-latest: true+ cache: true+ - name: Build+ uses: goreleaser/goreleaser-action@v4+ with:+ args: release --skip-publish --config scripts/.goreleaser-for-linux.yaml+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ - name: Upload+ uses: actions/upload-artifact@v3+ with:+ name: bytebase-linux+ path: dist/bytebase*+ build-darwin-binary:+ runs-on: macos-latest+ steps:+ - uses: actions/checkout@v3+ - uses: pnpm/[email protected]+ with:+ version: 8.6.0+ - uses: actions/setup-node@v3+ with:+ node-version: "18"+ cache: pnpm+ cache-dependency-path: "frontend/pnpm-lock.yaml"+ - run: pnpm install --frozen-lockfile+ working-directory: frontend+ - run: pnpm release+ working-directory: frontend+ - uses: actions/setup-go@v4+ with:+ go-version: 1.20.1+ check-latest: true+ cache: true+ - name: Build+ uses: goreleaser/goreleaser-action@v4+ with:+ args: release --skip-publish --config scripts/.goreleaser-for-darwin.yaml+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ - name: Upload+ uses: actions/upload-artifact@v3+ with:+ name: bytebase-darwin+ path: dist/bytebase*draft-release:- runs-on: ubuntu-latest+ needs: [build-linux-binary, build-darwin-binary]+ runs-on: self-hostedsteps:- uses: actions/checkout@v3- uses: pnpm/[email protected]@@ -27,6 +92,27 @@ jobs:go-version: 1.20.1check-latest: truecache: true+ - name: Make directories+ run: |+ mkdir -p ./bytebase-build/linux+ mkdir -p ./bytebase-build/darwin+ - name: Download linux binaries+ uses: actions/download-artifact@v3+ with:+ name: bytebase-linux+ path: ./bytebase-build/linux+ - name: Download darwin binaries+ uses: actions/download-artifact@v3+ with:+ name: bytebase-darwin+ path: ./bytebase-build/darwin+ - name: Merge checksum file+ run: |+ cd ./bytebase-build+ cat ./darwin/bytebase*checksums.txt >> checksums.txt+ cat ./linux/bytebase*checksums.txt >> checksums.txt+ rm ./darwin/bytebase*checksums.txt+ rm ./linux/bytebase*checksums.txt- name: Releaseuses: goreleaser/goreleaser-action@v4with: