Skip to content

Commit

Permalink
Publish to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dnrce authored and jjcarstens committed May 11, 2022
1 parent 47ceed7 commit a046856
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Publish to GitHub Pages

on: [ pull_request, push ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- run: npm run deploy
- uses: actions/upload-artifact@v3
with:
name: dist
path: _dist

publish:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: dist
path: _dist
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _dist
permissions:
contents: write
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

1 change: 1 addition & 0 deletions static/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
www.nerves-hub.org

0 comments on commit a046856

Please sign in to comment.