Skip to content

Deploy Prod

Deploy Prod #258

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Deploy Prod
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
release:
types: [published]
schedule:
- cron : '55 23 * * 0,2'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
submodules: true
- name: Setup Hugo peaceiris
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.74.2'
# extended: true
- name: Build peaceiris
run: hugo --minify
- name: Deploy peaceiris
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: ./public
external_repository: JoymonOnline/joymononline.github.io
publish_branch : gh-pages
cname: joymononline.in