Skip to content

Commit

Permalink
feat: build to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dwmkerr committed Nov 17, 2019
1 parent 8ce572d commit 697451f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to GitHub Pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@releases/v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: master # Deploy from master...
BRANCH: gh-pages # ...to GitHub pages...
BUILD_SCRIPT: make build # ...run the build action...
FOLDER: artifacts/dist # ...copy the distribution folder.
10 changes: 10 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
build:
# Cleanup the artifacts folder, create the distribution location.
rm -rf artifacts || true
mkdir artifacts
mkdir artifacts/dist

# Copy over the static site files.
cp -r index.html css js sounds artifacts/dist/.

.PHONY: build

0 comments on commit 697451f

Please sign in to comment.