Add Action to push Jafner.dev generated files to S3 bucket

This commit is contained in:
Joey Hafner 2024-08-08 10:17:11 -07:00
parent cfbb22bed0
commit a18cfab6ce
No known key found for this signature in database
2 changed files with 20 additions and 3 deletions

View File

@ -62,7 +62,7 @@ jobs:
with:
path: 'sites/Jafner.dev/public'
deploy:
deploy-github-pages:
environment:
name: github-pages
url: https://jafner.dev/
@ -71,4 +71,21 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
deploy-s3:
environment:
name: s3
url: https://jafner.dev/
runs-on: ubuntu-latest
needs: build
steps:
- name: Authenticate AWS CLI
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-west-2
- name: Push generated files to jafner-dev bucket
run: |
aws s3 sync sites/Jafner.dev/public s3://jafner-dev --delete

View File

@ -1,5 +1,5 @@
# Jafner.net
A monorepo for all my projects and dotfiles.
A monorepo for all my projects and dotfiles. Hosted on [my Gitea](https://gitea.jafner.tools/Jafner/Jafner.net) and mirrored to [GitHub](https://github.com/Jafner/Jafner.net).
## Map of Contents