Update main.yml

This commit is contained in:
GURU SABARISH
2020-10-24 10:24:46 +05:30
committed by GitHub
parent 345341dd3b
commit 1aa68791d7
+10 -15
View File
@@ -1,30 +1,25 @@
name: github pages name: CI
on: push
on:
push:
branches:
- master # Set a branch to deploy
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v2 - name: Git checkout
with: uses: actions/checkout@v2
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo - name: Setup hugo
uses: peaceiris/actions-hugo@v2 uses: peaceiris/actions-hugo@v2
with: with:
hugo-version: '0.75.1' hugo-version: "0.64.0"
# extended: true
- name: Build - name: Build
# remove --minify tag if you do not need it
# docs: https://gohugo.io/hugo-pipes/minification/
run: hugo --minify run: hugo --minify
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
with: with:
github_token: HUGO_DEPLOY personal_token: ${{ secrets.TOKEN }}
publish_dir: ./public publish_dir: ./public
publish_branch: master