Skip to content

Update ghcr.io/gohugoio/hugo Docker tag to v0.140.2 #75

Update ghcr.io/gohugoio/hugo Docker tag to v0.140.2

Update ghcr.io/gohugoio/hugo Docker tag to v0.140.2 #75

Workflow file for this run

name: CI/CD (development)
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
loganmarchione-github-io:
name: Deploy (loganmarchione.github.io)
runs-on: ubuntu-latest
env:
HUGO_VERSION: '0.136.5'
steps:
- name: Check out the codebase
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ env.HUGO_VERSION }}
extended: true
- name: Build
run: hugo --gc -DEF --baseURL="https://${{ env.URL }}"
env:
URL: loganmarchione.github.io
- name: Overwrite robots.txt (for search engines)
run: |
: > ./public/robots.txt
echo "User-agent: *" >> ./public/robots.txt
echo "Disallow: /" >> ./public/robots.txt
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
external_repository: loganmarchione/loganmarchione.github.io
publish_branch: gh-pages
publish_dir: ./public
loganmarchione-dev:
name: Deploy (loganmarchione.dev)
needs: loganmarchione-github-io
runs-on: ubuntu-latest
env:
HUGO_VERSION: '0.136.5'
permissions:
id-token: write
contents: read
steps:
- name: Check out the codebase
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ env.HUGO_VERSION }}
extended: true
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.ROLE_TO_ASSUME_ARN_DEV }}
role-duration-seconds: 900
aws-region: us-east-2
- name: Update CloudFront Distribution
run: sed -i "s/CLOUDFRONT_DISTRIBUTION_DEV/${{ secrets.CLOUDFRONT_DISTRIBUTION_DEV }}/g" hugo.yaml
- name: Build
run: hugo --gc -DEF --baseURL="https://${{ env.URL }}"
env:
URL: loganmarchione.dev
- name: Overwrite robots.txt (for search engines)
run: |
: > ./public/robots.txt
echo "User-agent: *" >> ./public/robots.txt
echo "Disallow: /" >> ./public/robots.txt
- name: Deploy to S3
run: hugo deploy --maxDeletes -1 --invalidateCDN --target loganmarchione-dev --logLevel info