Skip to content

Commit

Permalink
Created Build Action
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKibble committed Jul 12, 2021
1 parent ffb1b4f commit 5765062
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Publish Website
on:
push:
branch:
- main
schedule:
- cron: "0 0,6,12,18 * * *"

jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.TOKEN }}
submodules: recursive

- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.85.0"
extended: true

- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.TOKEN }}
external_repository: DataForNerds/website
publish_dir: ./public
# keep_files: true
user_name: "GitHub Actions"
user_email: "noreply@datafornerds.io"
publish_branch: main
cname: datafornerds.io

0 comments on commit 5765062

Please sign in to comment.