Skip to content

Commit

Permalink
Add Action to push Jafner.dev generated files to S3 bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Jafner committed Aug 8, 2024
1 parent cfbb22b commit a18cfab
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/Jafner.dev_hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
with:
path: 'sites/Jafner.dev/public'

deploy:
deploy-github-pages:
environment:
name: github-pages
url: https://jafner.dev/
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit a18cfab

Please sign in to comment.