Skip to content

Update implementation phases and timeline details #26

Update implementation phases and timeline details

Update implementation phases and timeline details #26

Workflow file for this run

name: Build and Deploy Hugo Site
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
submodules: recursive
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: latest
extended: true
- name: Build site
run: |
if [ -n "${{ steps.pages.outputs.base_url }}" ]; then
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}"
else
hugo --minify
fi
- name: Upload artifact
if: github.event_name == 'push'
uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
name: Deploy to Production
runs-on: ubuntu-latest
needs: build-and-test
if: github.event_name == 'push'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4