summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-18 21:45:54 +0100
committerGitHub <noreply@github.com>2024-08-18 22:45:54 +0200
commita3bd9fa52926ced606bb0682435b1ecadddd7e37 (patch)
tree1502c1326f8263af32302f8c0842c844c5259ec4 /.github/workflows
parent558d2a098bd20b3031139e37b088345c766e0b4e (diff)
ci: fix 'promote_to_rc' workflow by adding codesigning (#25074)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/promote_to_rc.yml16
1 files changed, 12 insertions, 4 deletions
diff --git a/.github/workflows/promote_to_rc.yml b/.github/workflows/promote_to_rc.yml
index 9bd269d10..a87574346 100644
--- a/.github/workflows/promote_to_rc.yml
+++ b/.github/workflows/promote_to_rc.yml
@@ -4,13 +4,13 @@ on:
workflow_dispatch:
inputs:
commitHash:
- description: 'Commit to promote to the Release Candidate'
+ description: Commit to promote to the Release Candidate
required: true
jobs:
promote-to-rc:
name: Promote to Release Candidate
- runs-on: ubuntu-latest
+ runs-on: macOS-latest
if: github.repository == 'denoland/deno'
steps:
- name: Clone repository
@@ -37,11 +37,19 @@ jobs:
with:
deno-version: v1.x
+ - name: Install rust-codesign
+ run: |-
+ ./tools/install_prebuilt.js rcodesign
+ echo $GITHUB_WORKSPACE/third_party/prebuilt/mac >> $GITHUB_PATH
+
- name: Promote to RC
+ 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.releaseKind}}
+ deno run -A ./tools/release/promote_to_rc.ts ${{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/$(echo release-rc-latest.txt)/
+ 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