Test GitHub deployment

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-11-01 16:48:33 +05:30
parent c32503fb9a
commit 6fca9e83d3
1 changed files with 28 additions and 0 deletions

28
.github/workflows/deploy_test.yml vendored Normal file
View File

@ -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