Skip to content

Commit

Permalink
feat(gh-action): Create initial deployment action
Browse files Browse the repository at this point in the history
This is first pass at using GitHub Actions[1] to deploy the site.

[1]: https://github.com/features/actions
  • Loading branch information
andrewsardone committed Aug 23, 2020
1 parent bf6e73b commit 4232c9e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This is a basic workflow for deploying the site

name: github pages

on:
push:
branches: [ master ]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Sets up the proper node version
- uses: actions/setup-node@v1
with:
node-version: 12

- run: npm install
- run: npm run build

- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

0 comments on commit 4232c9e

Please sign in to comment.