-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport: publish latest and tags to AWS S3
In order to automate publishing 4.x releases to AWS S3, we also need this workflow on the 4.x branch. See #1972
- Loading branch information
Showing
1 changed file
with
38 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,38 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish-aws-s3: | ||
name: Publish to AWS S3 | ||
runs-on: 'ubuntu-latest' | ||
environment: 'builds.handlebarsjs.com.s3.amazonaws.com' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Publish | ||
run: | | ||
git config --global user.email "release@handlebarsjs.com" | ||
git config --global user.name "handlebars-lang" | ||
npm run publish:aws | ||
env: | ||
S3_BUCKET_NAME: "builds.handlebarsjs.com" | ||
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }} | ||
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }} |