27 lines
568 B
YAML
27 lines
568 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [ develop ]
|
|
|
|
jobs:
|
|
lint-and-build:
|
|
name: Deploy
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js 16.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16.x
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run sitemap
|
|
- name: Deploy to GitHub Pages
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
BRANCH: gh-pages
|
|
FOLDER: dist
|
|
CLEAN: true
|