Skip to content

Update JamesIves/github-pages-deploy-action action to v4.6.0 (#29) #72

Update JamesIves/github-pages-deploy-action action to v4.6.0 (#29)

Update JamesIves/github-pages-deploy-action action to v4.6.0 (#29) #72

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
schedule:
- cron: '0 0 1 1 *'
repository_dispatch:
types: [build-and-deploy]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0
with:
hugo-version: 'latest'
- name: Build
run: hugo --minify
- name: Copy CNAME and robots.txt
run: cp CNAME robots.txt public
# Deploy site
- name: Deploy
uses: JamesIves/github-pages-deploy-action@ec9c88baef04b842ca6f0a132fd61c762aa6c1b0 # v4.6.0
with:
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
BRANCH: github-pages
FOLDER: public
REPOSITORY_NAME: michael-valdron/michael-valdron.github.io
CLEAN: true