nova-betterchat/.github/workflows/deploy.yml

44 lines
819 B
YAML
Raw Normal View History

2023-03-03 23:55:02 +01:00
name: Deploy to GitHub Pages
on:
push:
2023-03-04 00:44:02 +01:00
branches: [main]
2023-03-08 16:19:37 +01:00
workflow_dispatch:
2023-03-03 23:55:02 +01:00
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
2023-03-03 23:55:02 +01:00
jobs:
build:
2023-03-03 23:55:02 +01:00
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
2023-03-03 23:55:02 +01:00
steps:
2023-03-04 00:44:02 +01:00
- uses: actions/checkout@v3
2023-03-03 23:55:02 +01:00
2023-03-04 00:44:02 +01:00
- name: Use Node.js 18
uses: actions/setup-node@v3
2023-03-03 23:55:02 +01:00
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Build website
run: yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
2023-03-04 00:44:02 +01:00
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1