Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0dcef35

Browse files
Merge pull request #21 from QuLogic/auto-deploy
Auto-deploy to gh-pages branch using GitHub Actions.
2 parents fae6664 + 96d4f8c commit 0dcef35

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
lines changed

.github/workflows/gh-pages.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: '0 9 * * *'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-18.04
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup Hugo
17+
uses: peaceiris/actions-hugo@v2
18+
with:
19+
hugo-version: '0.62.2'
20+
21+
- name: Build
22+
run: hugo --minify
23+
24+
- name: Deploy
25+
uses: peaceiris/actions-gh-pages@v3
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./public

publish.bat

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)