Skip to content

changing baseurl

changing baseurl #7

Workflow file for this run

name: Deploy Hugo Site to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository
- name: Checkout code
uses: actions/checkout@v2
# Step 2: Set up Hugo
- name: Set up Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.140.2' # Specify the Hugo version
# Step 3: Build the site
- name: Build the Hugo site
run: hugo --minify
# Step 4: Debug GITHUB_TOKEN
- name: Debug GITHUB_TOKEN
run: echo "Token is available"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Step 5: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./public # This is the folder Hugo generates the site in
github_token: ${{ secrets.GITHUB_TOKEN }} # Token to authenticate with GitHub