feat: 🎸 remove blog roll #170
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: Deploy | |
permissions: | |
id-token: write | |
contents: read | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true # Fetch Hugo themes (true OR recursive) | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v3 | |
with: | |
hugo-version: '0.133.0' | |
extended: true | |
# - name: Create CV | |
# uses: docker://pandoc/extra:3.1.1.0 | |
# with: | |
# args: content/cv.md --output=static/cv.pdf --template /.pandoc/templates/eisvogel.latex --listings -V block-headings | |
- name: Build | |
run: hugo --minify | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: eu-west-2 | |
role-to-assume: arn:aws:iam::261964097300:role/github-mikebellio-deploy | |
- name: S3 Sync | |
run: aws s3 sync public s3://mikebell.io --acl public-read --follow-symlinks --delete | |
shell: bash | |
- name: Invalidate cloudfront | |
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONTID }} --paths "/*" |