-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: new workflow to promote a version pushed to S3 (#2272)
* feature: new workflow to promote a version pushed to S3 * fix: add whitespace * fix: use correct input name
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |