27 lines
585 B
YAML
27 lines
585 B
YAML
|
name: Deploy
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ develop ]
|
||
|
|
||
|
jobs:
|
||
|
lint-and-build:
|
||
|
name: Deploy
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Use Node.js 12.x
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: 12.x
|
||
|
- run: npm ci
|
||
|
- run: npm run build
|
||
|
- run: npm run sitemap
|
||
|
- name: Deploy to GitHub Pages
|
||
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||
|
with:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||
|
BRANCH: gh-pages
|
||
|
FOLDER: build
|
||
|
CLEAN: true
|