Skip to content

fix: use networking tag #67

fix: use networking tag

fix: use networking tag #67

Workflow file for this run

name: pierreccesario.com CI
on:
workflow_dispatch:
push:
branches: ["main"]
paths: ["main/**", "themes/**"]
defaults:
run:
working-directory: ./main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions: # for aws creds
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.136.5" # last version that has the deploy feature, see https://github.com/gohugoio/hugo/pull/12995
extended: true
- name: Build Site
run: hugo
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::714188290514:role/github-manage-s3-pierreccesario
aws-region: ap-southeast-1
- name: Deploy to S3
run: hugo deploy