Created
October 8, 2022 07:54
-
-
Save patrickposner/04adb2715f8e5e3090148a551c9a42c8 to your computer and use it in GitHub Desktop.
Worfklow to export from Simply Static to AWS S3
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: 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