Add Action to push Jafner.dev generated files to S3 bucket
This commit is contained in:
parent
cfbb22bed0
commit
a18cfab6ce
21
.github/workflows/Jafner.dev_hugo.yaml
vendored
21
.github/workflows/Jafner.dev_hugo.yaml
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user