Skip to content

Commit

Permalink
chore: add more makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kholisrag committed Feb 3, 2024
1 parent ad23230 commit 8bbf705
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ BASE_URL = $(shell cat CNAME | sed 's/^/https:\/\//' | sed 's/$$/\//')

check:
@echo "Checking for `sops` command"
@command -v sops >/dev/null 2>&1 || (echo "sops not found" && exit 1)
@command -v sops >/dev/null 2>&1 || (echo "`sops` not found" && exit 1)
@echo "Checking for `hugo` command"
@command -v hugo >/dev/null 2>&1 || (echo "hugo not found" && exit 1)
@command -v hugo >/dev/null 2>&1 || (echo "`hugo` not found" && exit 1)

decrypt:
@echo "Checking for secrets.enc.cfg file"
Expand All @@ -28,3 +28,9 @@ render: decrypt
--gc \
--minify \
--baseURL "$(BASE_URL)"

watch-latest-actions:
@echo "Checking for `gh` command"
@command -v gh >/dev/null 2>&1 || (echo "`gh` not found" && exit 1)
@echo "Watching latest actions"
@gh run watch

0 comments on commit 8bbf705

Please sign in to comment.