Skip to content

Commit

Permalink
Create build-and-deploy-master.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jerouris authored Nov 1, 2021
1 parent 1c22c95 commit e9fa6ab
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-and-deploy-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and deploy master branch to test-docs
on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Build Spec
run: bash ./build.sh

- name: Deploy on S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws s3 sync --acl public-read --region eu-west-1 target/site ${{ secrets.AWS_S3_PATH }}

0 comments on commit e9fa6ab

Please sign in to comment.