bb55dead2d
See #1972
37 lines
814 B
YAML
37 lines
814 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
publish-aws-s3:
|
|
name: Publish to AWS S3
|
|
runs-on: 'ubuntu-latest'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '18'
|
|
|
|
- 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:
|
|
# Note: the environment secrets `S3_ACCESS_KEY_ID`
|
|
# and `S3_SECRET_ACCESS_KEY` have to be set!
|
|
S3_BUCKET_NAME: "builds.handlebarsjs.com"
|