Skip to content

Commit cf14151

Browse files
Init Github action to push github website.
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent c9a30ba commit cf14151

File tree

3 files changed

+873
-0
lines changed

3 files changed

+873
-0
lines changed

.github/workflows/gh-pages.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Set a branch to deploy
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
submodules: true # Fetch Hugo themes (true OR recursive)
15+
fetch-depth: 1 # Fetch all history for .GitInfo and .Lastmod
16+
- uses: bahmutov/npm-install@v1
17+
18+
- name: Setup Hugo
19+
uses: peaceiris/actions-hugo@v2
20+
with:
21+
hugo-version: 'latest'
22+
# extended: true
23+
24+
- name: Build
25+
run: |
26+
npm install -D --save autoprefixer
27+
npm install -D --save postcss-cli
28+
hugo --minify
29+
30+
- name: Deploy
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.TOKEN }}
34+
publish_dir: ./public

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/docsy"]
2+
path = themes/docsy
3+
url = https://github.com/google/docsy.git

0 commit comments

Comments
 (0)