Skip to content

Commit

Permalink
Try GitHub actions for deploying the website
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Feb 1, 2021
1 parent b9c7e59 commit f731988
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 31 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ trim_trailing_whitespace = true

[*.html]
indent_size = 2

[*.yml]
indent_size = 2
indent_style = space
32 changes: 32 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: github pages

on:
push:
branches:
- main


jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.80.0'
# extended: true

- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.WEBSITE_DEPLOY_KEY }}
external_repository: space-wizards/space-wizards.github.io
publish_branch: master
publish_dir: ./public
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
node_modules/*
static/js/*
resources/_gen/
public/
31 changes: 0 additions & 31 deletions publish.py

This file was deleted.

0 comments on commit f731988

Please sign in to comment.