Update my social media handles (#423) #740
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: Generate Site | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
generate: | |
if: github.repository_owner == 'marchof' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- run: | | |
mvn --no-transfer-progress package exec:java -Dexec.mainClass=org.javabubble.generator.SiteGenerator | |
working-directory: generator | |
# Publish to AWS Bucket | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: eu-central-1 | |
if: github.ref == 'refs/heads/main' | |
- run: | | |
aws s3 sync generator/target/site s3://javabubble.org | |
aws cloudfront create-invalidation --distribution-id EH2BVKQRF4MDG --paths "/*" | |
if: github.ref == 'refs/heads/main' |