Skip to content

Instantly share code, notes, and snippets.

@patrickposner
Created October 8, 2022 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickposner/04adb2715f8e5e3090148a551c9a42c8 to your computer and use it in GitHub Desktop.
Save patrickposner/04adb2715f8e5e3090148a551c9a42c8 to your computer and use it in GitHub Desktop.
Worfklow to export from Simply Static to AWS S3
name: Upload Website
on:
repository_dispatch:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- 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: ap-southeast-1
- name: Deploy static site to S3 bucket
run: aws s3 sync ./public/ s3://BUCKET_NAME --delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment