Skip to content

Update 2023-07-01-mvc-laravel.md #41

Update 2023-07-01-mvc-laravel.md

Update 2023-07-01-mvc-laravel.md #41

Workflow file for this run

name: github pages
on:
push:
branches:
- main # Set a branch to deploy
pull_request:
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
# extended: true
- name: Build
working-directory: ./webpage
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
external_repository: lightszentip/lightszentip.github.io
publish_dir: ./webpage/public
# keep_files: true
user_name: lightszentip
user_email: [email protected]
publish_branch: gh-pages