Skip to content

Commit

Permalink
enable github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rootsongjc committed Oct 26, 2020
1 parent b1d7be1 commit 4a8d6a1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build-and-deploy
on: push
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- name: Git checkout
uses: actions/checkout@v2

- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.58.3'
extended: true
- name: Build
# remove --minify tag if you do not need it
# docs: https://gohugo.io/hugo-pipes/minification/
run: hugo
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./public
2 changes: 2 additions & 0 deletions themes/hugo-book/layouts/partials/docs/html-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<!-- Favicon -->
<link rel="icon" href="{{ "favicon.png" | relURL }}" type="image/x-icon">

<meta property="og:image" content="{{ "favicon.png" | relURL }}">

<!-- RSS -->
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
Expand Down
Binary file modified themes/hugo-book/static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4a8d6a1

Please sign in to comment.