summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-12 21:06:59 +0100
committerGitHub <noreply@github.com>2024-09-12 22:06:59 +0200
commite2875aee74d8f41db9028cbfae0952bc9bf250e7 (patch)
treef3a68d03ce40f605196806cccc5048c52be3fcea /.github
parent18b89d948dcb849c4dc577478794c3d5fb23b597 (diff)
ci: Add action to cut LTS release (#25590)
Factored from https://github.com/denoland/deno/pull/25123. --------- Signed-off-by: David Sherret <dsherret@users.noreply.github.com> Co-authored-by: David Sherret <dsherret@gmail.com> Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/promote_to_release.yml (renamed from .github/workflows/promote_to_rc.yml)23
1 files changed, 15 insertions, 8 deletions
diff --git a/.github/workflows/promote_to_rc.yml b/.github/workflows/promote_to_release.yml
index a87574346..07109acb6 100644
--- a/.github/workflows/promote_to_rc.yml
+++ b/.github/workflows/promote_to_release.yml
@@ -1,15 +1,22 @@
-name: promote_to_rc
+name: promote_to_release
on:
workflow_dispatch:
inputs:
+ releaseKind:
+ description: 'Kind of release'
+ type: choice
+ options:
+ - rc
+ - lts
+ required: true
commitHash:
- description: Commit to promote to the Release Candidate
+ description: Commit to promote to release
required: true
jobs:
- promote-to-rc:
- name: Promote to Release Candidate
+ promote-to-release:
+ name: Promote to Release
runs-on: macOS-latest
if: github.repository == 'denoland/deno'
steps:
@@ -42,14 +49,14 @@ jobs:
./tools/install_prebuilt.js rcodesign
echo $GITHUB_WORKSPACE/third_party/prebuilt/mac >> $GITHUB_PATH
- - name: Promote to RC
+ - name: Promote to Release
env:
APPLE_CODESIGN_KEY: '${{ secrets.APPLE_CODESIGN_KEY }}'
APPLE_CODESIGN_PASSWORD: '${{ secrets.APPLE_CODESIGN_PASSWORD }}'
run: |
- deno run -A ./tools/release/promote_to_rc.ts ${{github.event.inputs.commitHash}}
+ deno run -A ./tools/release/promote_to_release.ts ${{github.event.inputs.releaseKind}} ${{github.event.inputs.commitHash}}
- name: Upload archives to dl.deno.land
run: |
- gsutil -h "Cache-Control: public, max-age=3600" cp ./*.zip gs://dl.deno.land/release/$(cat release-rc-latest.txt)/
- gsutil -h "Cache-Control: no-cache" cp release-rc-latest.txt gs://dl.deno.land/release-rc-latest.txt
+ gsutil -h "Cache-Control: public, max-age=3600" cp ./*.zip gs://dl.deno.land/release/$(cat release-${{github.event.inputs.commitHash}}-latest.txt)/
+ gsutil -h "Cache-Control: no-cache" cp release-${{github.event.inputs.commitHash}}-latest.txt gs://dl.deno.land/release-${{github.event.inputs.commitHash}}-latest.txt