1
0
mirror of https://github.com/bitwarden/help synced 2025-12-10 13:23:16 +00:00

deploy to s3

This commit is contained in:
Kyle Spearrin
2020-04-27 13:57:15 -04:00
parent 8aa0ffc192
commit ff51d3251b

View File

@@ -52,3 +52,15 @@ jobs:
- name: Build site and deploy to gh-pages
if: github.ref == 'refs/heads/master'
run: npm run deploy
- name: Deploy to S3
if: github.ref == 'refs/heads/master'
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: '_site'