mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 19:14:40 -04:00
content: Update GitHub Pages workflow example
This commit is contained in:
parent
3672d91160
commit
167ea97133
@ -73,7 +73,7 @@ touch .github/workflows/hugo.yaml
|
|||||||
Copy and paste the YAML below into the file you created. Change the branch name and Hugo version as needed.
|
Copy and paste the YAML below into the file you created. Change the branch name and Hugo version as needed.
|
||||||
|
|
||||||
```yaml {file=".github/workflows/hugo.yaml" copy=true}
|
```yaml {file=".github/workflows/hugo.yaml" copy=true}
|
||||||
name: Build and deploy Hugo site to GitHub Pages
|
name: Build and deploy
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -100,7 +100,7 @@ jobs:
|
|||||||
TZ: Europe/Oslo
|
TZ: Europe/Oslo
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -169,8 +169,6 @@ jobs:
|
|||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ./public
|
path: ./public
|
||||||
|
|
||||||
# Deployment job
|
|
||||||
deploy:
|
deploy:
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user