This commit is contained in:
parent
dadc9257a7
commit
7cd441a876
1 changed files with 23 additions and 9 deletions
|
|
@ -1,10 +1,24 @@
|
||||||
stages:
|
name: Build Hugo Site
|
||||||
- greeting
|
|
||||||
|
|
||||||
greeting_job:
|
on:
|
||||||
stage: greeting
|
push:
|
||||||
image: alpine:latest # Using Alpine Linux for a lightweight container
|
branches:
|
||||||
script:
|
- main # or master, depending on your main branch's name
|
||||||
- echo "🎉 Hello World."
|
pull_request:
|
||||||
only:
|
branches:
|
||||||
- master # This job runs only on pushes to the master branch
|
- main # Enables the action on pull requests to the main branch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest # Specifies the runner environment
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2 # Checks out a copy of your repository
|
||||||
|
|
||||||
|
- name: Set up Hugo
|
||||||
|
uses: peaceiris/actions-hugo@v2 # This action sets up Hugo
|
||||||
|
with:
|
||||||
|
hugo-version: '0.92.0' # Specify the Hugo version you need
|
||||||
|
|
||||||
|
- name: Build Hugo site
|
||||||
|
run: hugo --minify # Commands to build your Hugo site
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue