hugo action
Add example of pulling in a theme
إجراء لتشغيل أوامر hugo
.
يمتد هذا المثال على الدفع إلى الفرع الرئيسي وسيقوم بتشغيل hugo --theme=hyde-x
لبناء موقعك.
workflow "Hugo build" {
resolves = [
"Hugo Action",
]
on = "push"
}
action "Hugo Action" {
uses = "srt32/hugo-action@master"
needs = "Filters for GitHub Actions"
args = "--theme=hyde-x"
}
action "Filters for GitHub Actions" {
uses = "actions/bin/filter@b2bea0749eed6beb495a8fa194c071847af60ea1"
args = "branch master"
}
هل تريد جلب المواضيع ديناميكيًا قبل البناء؟ استخدم هذا الإجراء مثل هذا
workflow "Hugo build" {
resolves = [
"Hugo Action",
]
on = "push"
}
action "Fetch git submodules" {
uses = "srt32/git-actions@master"
args = "cd themes && git clone https://github.com/zyro/hyde-x"
}
action "Hugo Action" {
uses = "srt32/hugo-action@master"
needs = ["Filters for GitHub Actions", "Fetch git submodules"]
args = "--theme=hyde-x"
}
action "Filters for GitHub Actions" {
uses = "actions/bin/filter@b2bea0749eed6beb495a8fa194c071847af60ea1"
args = "branch master"
}