diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-16 22:59:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-16 23:59:10 +0200 |
commit | 2eeea0a1d2011567d3a41065d66802097366dc8c (patch) | |
tree | a231ffa562cbd2eabbd7703a25938b3f9e47fb25 /.github/workflows | |
parent | db75462bd6f01d4a470c2ed7b5aad2f9a877f150 (diff) |
ci: add script to promote to RC release (#25072)
This commits add a CI script that allows to promote a certain
canary build to a "Release Candidate" release.
This is done using `libsui` and `patchver` utilities.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/promote_to_rc.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/promote_to_rc.yml b/.github/workflows/promote_to_rc.yml new file mode 100644 index 000000000..9bd269d10 --- /dev/null +++ b/.github/workflows/promote_to_rc.yml @@ -0,0 +1,47 @@ +name: promote_to_rc + +on: + workflow_dispatch: + inputs: + commitHash: + description: 'Commit to promote to the Release Candidate' + required: true + +jobs: + promote-to-rc: + name: Promote to Release Candidate + runs-on: ubuntu-latest + if: github.repository == 'denoland/deno' + steps: + - name: Clone repository + uses: actions/checkout@v4 + with: + token: ${{ secrets.DENOBOT_PAT }} + submodules: recursive + + - name: Authenticate with Google Cloud + uses: google-github-actions/auth@v1 + with: + project_id: denoland + credentials_json: ${{ secrets.GCP_SA_KEY }} + export_environment_variables: true + create_credentials_file: true + + - name: Setup gcloud + uses: google-github-actions/setup-gcloud@v1 + with: + project_id: denoland + + - name: Install deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Promote to RC + run: | + deno run -A ./tools/release/promote_to_rc.ts ${{github.event.inputs.releaseKind}} + + - name: Upload archives to dl.deno.land + run: | + gsutil -h "Cache-Control: public, max-age=3600" cp ./*.zip gs://dl.deno.land/release/$(echo release-rc-latest.txt)/ + gsutil -h "Cache-Control: no-cache" cp release-rc-latest.txt gs://dl.deno.land/release-rc-latest.txt |