Skip to content

Commit

Permalink
feature: new workflow to promote a version pushed to S3 (#2272)
Browse files Browse the repository at this point in the history
* feature: new workflow to promote a version pushed to S3

* fix: add whitespace

* fix: use correct input name
  • Loading branch information
ryandagg authored Mar 21, 2023
1 parent 25b54fa commit dbf36fc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/promote-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
workflow_dispatch:
inputs:
version:
description: version to promote to latest
type: string
required: true

jobs:
promote:
runs-on: ubuntu-latest
environment: CLIS3BucketAndCloudfront
env:
CLOUDFRONT_DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION }}
HEROKU_S3_BUCKET: ${{ secrets.HEROKU_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
- run: yarn --frozen-lockfile --network-timeout 1000000
- run: cd packages/cli
- run: oclif promote --deb --version=${{ inputs.version }}

0 comments on commit dbf36fc

Please sign in to comment.