diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28ee8291261d9..fdb9332ea4cb7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,18 +5,15 @@ name: release on: release: types: [published] -env: - branch: main jobs: linux-amd64-build-job: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout source uses: actions/checkout@v3 - with: - repository: matrixorigin/matrixone - ref: ${{ env.branch }} + - name: Get tags + run: git fetch --tags origin - name: Use Golang uses: actions/setup-go@v4 with: @@ -47,11 +44,9 @@ jobs: runs-on: arm64-runner steps: - name: Checkout source - uses: actions/checkout@v3 - with: - repository: matrixorigin/matrixone - ref: ${{ env.branch }} - + uses: actions/checkout@v3 + - name: Get tags + run: git fetch --tags origin - name: Use Golang uses: actions/setup-go@v4 with: @@ -84,11 +79,9 @@ jobs: runs-on: macos-latest steps: - name: Checkout source - uses: actions/checkout@v3 - with: - repository: matrixorigin/matrixone - ref: ${{ env.branch }} - + uses: actions/checkout@v3 + - name: Get tags + run: git fetch --tags origin - name: Use Golang uses: actions/setup-go@v4 with: @@ -139,10 +132,8 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v3 - with: - repository: matrixorigin/matrixone - ref: ${{ env.branch }} - + - name: Get tags + run: git fetch --tags origin - name: Check go Version run: | go version