From a000891c6cf849e3898f9602f90eab25685a648d Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Tue, 15 Oct 2024 13:45:09 -0600 Subject: [PATCH 1/3] Fix the release workflow Signed-off-by: Florent Poinsard --- .github/workflows/create_release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index bafb115bb03..8ffe8045d87 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -16,6 +16,8 @@ jobs: permissions: contents: write steps: + - name: Check out code + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Set up Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 @@ -31,9 +33,6 @@ jobs: run: | sudo sysctl -w net.ipv4.ip_local_port_range="22768 65535" - - name: Check out code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - name: Get dependencies run: | sudo apt-get update From cc0780cd29dab4b7aa14ad6eb91eaeb296db654d Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Tue, 15 Oct 2024 13:50:49 -0600 Subject: [PATCH 2/3] WIP - Temporary fix to build and push v21.0.0-rc1 artefacts from this PR Signed-off-by: Florent Poinsard WIP - Move setup node to the beginning of the workflow Signed-off-by: Florent Poinsard WIP - test workflow Signed-off-by: Florent Poinsard WIP - test workflow Signed-off-by: Florent Poinsard WIP - remove test workflow and remove node setup from release workflow Signed-off-by: Florent Poinsard WIP - Correct upload URL Signed-off-by: Florent Poinsard WIP - Correct upload URL Signed-off-by: Florent Poinsard --- .github/workflows/create_release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 8ffe8045d87..5e442aaaf83 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -6,6 +6,7 @@ name: Release on: release: types: [created] + pull_request: # So it can run on this PR permissions: read-all @@ -18,17 +19,14 @@ jobs: steps: - name: Check out code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + ref: v21.0.0-rc1 # Explicit checkout to v21.0.0-rc1 - name: Set up Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: go.mod - - name: Setup node - uses: actions/setup-node@v4 - with: - node-version: '20.12.2' - - name: Tune the OS run: | sudo sysctl -w net.ipv4.ip_local_port_range="22768 65535" @@ -49,3 +47,4 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} pattern: "releases/*.{tar.gz,rpm,deb}" + release-url: https://uploads.github.com/repos/vitessio/vitess/releases/179932186/assets{?name,label} # Adding this line will update this release directly and not depend on the workflow to ran from a 'release' event From f72c48283441840e4d040cd72de2683ffc86e7d3 Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Tue, 15 Oct 2024 16:14:06 -0600 Subject: [PATCH 3/3] Revert WIP Signed-off-by: Florent Poinsard --- .github/workflows/create_release.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 5e442aaaf83..a42bbc0ff2d 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -6,7 +6,6 @@ name: Release on: release: types: [created] - pull_request: # So it can run on this PR permissions: read-all @@ -19,8 +18,6 @@ jobs: steps: - name: Check out code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - with: - ref: v21.0.0-rc1 # Explicit checkout to v21.0.0-rc1 - name: Set up Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 @@ -47,4 +44,3 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} pattern: "releases/*.{tar.gz,rpm,deb}" - release-url: https://uploads.github.com/repos/vitessio/vitess/releases/179932186/assets{?name,label} # Adding this line will update this release directly and not depend on the workflow to ran from a 'release' event