This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PR check and Hugo build workflows
- Loading branch information
1 parent
df5aa1a
commit 2907094
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build Hugo Site | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
- ".github/**" | ||
- ".gitignore" | ||
- ".gitattributes" | ||
branches: | ||
- 'master' | ||
jobs: | ||
hugo: | ||
name: Build Hugo Site | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v2 | ||
with: | ||
hugo-version: 'latest' | ||
extended: true | ||
- | ||
name: Build Hugo Site | ||
run: hugo --minify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Pull Request Check | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
- ".github/**" | ||
- ".gitignore" | ||
- ".gitattributes" | ||
types: [opened, edited] | ||
jobs: | ||
checkPullRequest: | ||
name: Pull Request check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Check pull requests | ||
uses: EventStore/Automations/pr-check@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters