Update README.md #18
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
name: Continuous Deployment on PR | ||
# 1 | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
env: #2 | ||
SOURCE_DIR: './build/' | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
PATHS: '/*' | ||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
steps: | ||
- uses: actions/checkout@v1 #1 | ||
- name: Get branch name #2 | ||
id: vars | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
- name: Install dependencies #33 | ||
run: yarn | ||
- name: Build # 4 | ||
run: yarn build:uat | ||
- name: AWS Deploy #5 | ||
uses: jakejarvis/[email protected] | ||
with: | ||
args: --acl public-read --follow-symlinks | ||
env: | ||
DEST_DIR: ${{steps.vars.outputs.branch}} |