Test GitHub deployment
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
c32503fb9a
commit
6fca9e83d3
|
@ -0,0 +1,28 @@
|
|||
name: Hugo deployment test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- src
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2.2.2
|
||||
with:
|
||||
hugo-version: '0.59.1'
|
||||
extended: true
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify -DEFb=https://msfjarvis.github.io/msfjarvis.website
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v2.5.0
|
||||
env:
|
||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||
PUBLISH_BRANCH: gh-pages
|
||||
PUBLISH_DIR: ./public
|
Loading…
Reference in New Issue