diff options
author | GURU SABARISH <gurusabarisha@gmail.com> | 2020-10-24 07:30:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-24 07:30:57 +0300 |
commit | 037ec98b51ee6f789f41ca13c0a5855b511c3fac (patch) | |
tree | 78e43b93fb16dbae8c4074d9097b534e4a140385 | |
parent | 6d50a08863a04f310826c13e048303352c3183e7 (diff) |
Create hugo.yml
-rw-r--r-- | .github/workflows/hugo.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml new file mode 100644 index 0000000..249f66b --- /dev/null +++ b/.github/workflows/hugo.yml @@ -0,0 +1,30 @@ +name: github pages + +on: + push: + branches: + - main # Set a branch to deploy + +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.75.1' + # extended: true + + - name: Build + run: hugo --minify + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public |