Skip to content

Commit

Permalink
test build via actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lifailon committed Feb 5, 2025
1 parent a5f3368 commit 062f6c2
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/build-zola.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
name: Build and Deploy Zola
name: Build and Deploy public files

on:
push:
branches:
- main
# push:
# branches:
# - main
# schedule:
# - cron: "00 * * * *"
workflow_dispatch:
inputs:
message:
description: "Commit message"
required: true
default: "update public files from main branch"

jobs:
build:
Expand Down Expand Up @@ -36,6 +44,7 @@ jobs:
- name: Remove old public files from zola-duckquill branch and copy new public files
run: |
find . -mindepth 1 ! -name '.git' -exec rm -rf {} +
ls -lha
mv ../public_output/* ./
ls -lha
Expand All @@ -44,4 +53,5 @@ jobs:
# git config --global user.name 'GitHub Actions'
# git config --global user.email '[email protected]'
# git add .
# git diff --staged --quiet || (git commit -m "update public files from main branch" && git push origin zola-duckquill)
# message="${{ github.event.inputs.message }}"
# git diff --staged --quiet || (git commit -m $message && git push origin zola-duckquill)

0 comments on commit 062f6c2

Please sign in to comment.