name: Build & Deploy
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 13.x
- run: npm ci
- run: npm run build
- run: npm test
env:
CI: true
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: qoomon/deploy-to-github-pages-action@v1
with:
GITHUB_PAGES_SOURCE_DIR: dist # default value: dist
GITHUB_PAGES_BRANCH: gh-pages # default value: gh-pages
GITHUB_PAGES_REPLACE: false # default value: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
forked from qoomon/actions--publish-to-github-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
GitHub Action to Publish Directory to GitHub Pages
License
jefferyq2/actions--publish-to-github-pages
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
GitHub Action to Publish Directory to GitHub Pages
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Languages
- Shell 94.6%
- Dockerfile 5.4%