Created
November 24, 2020 19:48
-
-
Save tuckner/30ea803598ccefeeeb746d30f6ed2617 to your computer and use it in GitHub Desktop.
Github Action
This file contains hidden or 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
# Deploy to S3 | |
name: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js 12 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- name: Build | |
run: | | |
npm ci | |
npm run build | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: Deploy | |
uses: jonelantha/gatsby-s3-action@v1 | |
with: | |
dest-s3-bucket: johntuckner.me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment