Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Revert "chore: optimize release job definitions (#1933)" (#2163)

Yilong Li2156fe34a89f
diff --git a/.github/workflows/build-artifacts-and-draft-release.yml b/.github/workflows/build-artifacts-and-draft-release.yml
index 2c9956fc98..750d09858b 100644
--- a/.github/workflows/build-artifacts-and-draft-release.yml
+++ b/.github/workflows/build-artifacts-and-draft-release.yml
@@ -6,13 +6,40 @@ on:
- "*.*.*"
jobs:
- build-binary:
- strategy:
- matrix:
- os:
- - "ubuntu"
- - "macos"
- runs-on: ${{ matrix.os }}-latest
+ build-linux-binary:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - 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
+ - uses: actions/setup-go@v3
+ with:
+ go-version: 1.18
+ check-latest: true
+ cache: true
+ - name: Build
+ uses: goreleaser/goreleaser-action@v2
+ with:
+ args: release --skip-publish --config .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]
@@ -35,7 +62,7 @@ jobs:
- name: Build
uses: goreleaser/goreleaser-action@v2
with:
- args: release --skip-publish --config .goreleaser-for-${{ matrix.os }}.yaml
+ args: release --skip-publish --config .goreleaser-for-darwin.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload
@@ -43,10 +70,8 @@ jobs:
with:
name: bytebase-${{ matrix.os }}
path: dist/bytebase*
-
draft-release:
- needs:
- - build-binary
+ needs: [build-linux-binary, build-darwin-binary]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 40d83fbfe7..a9f808b343 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -32,13 +32,36 @@ jobs:
skip-cache: true
# Copied from build-artifacts-and-draft-release.yml, should be consistent if updating build-artifacts-and-draft-release.yml.
- release-dry-run:
- strategy:
- matrix:
- os:
- - "ubuntu"
- - "macos"
- runs-on: ${{ matrix.os }}-latest
+ release-dry-run-linux:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - 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
+ - uses: actions/setup-go@v3
+ with:
+ go-version: 1.18
+ check-latest: true
+ cache: true
+ - name: Release dry-run
+ uses: goreleaser/goreleaser-action@v2
+ with:
+ args: release --skip-publish --config .goreleaser-for-linux.yaml
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ release-dry-run-darwin:
+ runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
@@ -58,10 +81,10 @@ jobs:
go-version: 1.18
check-latest: true
cache: true
- - name: Build
+ - name: Release dry-run
uses: goreleaser/goreleaser-action@v2
with:
- args: release --skip-publish --config .goreleaser-for-${{ matrix.os }}.yaml
+ args: release --skip-publish --config .goreleaser-for-darwin.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.goreleaser-for-macos.yaml b/.goreleaser-for-darwin.yaml
similarity index 100%
rename from .goreleaser-for-macos.yaml
rename to .goreleaser-for-darwin.yaml
diff --git a/.goreleaser-for-ubuntu.yaml b/.goreleaser-for-linux.yaml
similarity index 100%
rename from .goreleaser-for-ubuntu.yaml
rename to .goreleaser-for-linux.yaml