generated from threeal/nodejs-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 919 Bytes
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Deploy
on:
workflow_dispatch:
push:
branches: [main]
jobs:
deploy-docs:
name: Deploy Documentation
runs-on: ubuntu-24.04
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deploy-docs.outputs.page_url }}
concurrency:
group: pages
cancel-in-progress: true
steps:
- name: Checkout Project
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version-file: .nvmrc
- name: Setup Yarn
uses: threeal/[email protected]
- name: Build Documentation
run: yarn docs
- name: Upload Documentation
uses: actions/[email protected]
with:
path: docs
- name: Deploy Documentation
id: deploy-docs
uses: actions/[email protected]