wulkanowy.github.io/.github/workflows/deploy.yml

28 lines
568 B
YAML
Raw Normal View History

2021-01-20 16:05:38 +01:00
name: Deploy
on:
push:
branches: [ develop ]
jobs:
lint-and-build:
name: Deploy
runs-on: ubuntu-latest
2022-12-03 11:08:36 +01:00
permissions:
contents: write
2021-01-20 16:05:38 +01:00
steps:
2022-12-03 10:53:35 +01:00
- uses: actions/checkout@v3
- name: Use Node.js 16.x
2022-12-03 10:53:35 +01:00
uses: actions/setup-node@v3
2021-01-20 16:05:38 +01:00
with:
node-version: 16.x
2021-01-20 16:05:38 +01:00
- run: npm ci
- run: npm run build
- run: npm run sitemap
- name: Deploy to GitHub Pages
2022-12-03 10:53:35 +01:00
uses: JamesIves/github-pages-deploy-action@v4
2021-01-20 16:05:38 +01:00
with:
BRANCH: gh-pages
2021-01-20 16:19:06 +01:00
FOLDER: dist
2021-01-20 16:05:38 +01:00
CLEAN: true