Skip to content

Commit

Permalink
Add PR build action
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarWatcher committed Dec 30, 2023
1 parent c8602ad commit ec33825
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
pull_request:

jobs:
hugo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Run hugo
shell: bash
run: |
mkdir public
hugo --minify
1 change: 0 additions & 1 deletion layouts/partials/post-listing.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ <h2><a href="{{ .Permalink }}">{{ if .Draft }}{{ T "draft" }}: {{ end }}{{ .Titl
{{ else }}
{{ .Summary }}
{{ end }}

</p>
<div>
<a href="{{ .RelPermalink }}">Read More...</a>
Expand Down

0 comments on commit ec33825

Please sign in to comment.