Skip to content

Commit be92d2f

Browse files
committed
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
1 parent 443a613 commit be92d2f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
tags:
9+
- '*'
10+
11+
jobs:
12+
publish-aws-s3:
13+
name: Publish to AWS S3
14+
runs-on: 'ubuntu-latest'
15+
environment: 'builds.handlebarsjs.com.s3.amazonaws.com'
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
with:
20+
submodules: true
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: '16'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Publish
31+
run: |
32+
git config --global user.email "[email protected]"
33+
git config --global user.name "handlebars-lang"
34+
npm run publish:aws
35+
env:
36+
S3_BUCKET_NAME: "builds.handlebarsjs.com"
37+
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
38+
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)