-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 867 Bytes
/
Copy pathtest_deploy.yml
File metadata and controls
43 lines (39 loc) · 867 Bytes
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
42
43
name: Deploy test site
on:
push:
branches: [main]
workflow_dispatch:
permissions:
pages: write
id-token: write
contents: read
jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-node@v7
with:
node-version: lts/*
cache: npm
- name: Install dependencies
run: npm ci
- name: Build site
env:
URL: https://emexlab.github.io
BASE_URL: /
run: npm run build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v5
with:
path: build
deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: actions/deploy-pages@v5