Skip to content

Commit c7d5c4e

Browse files
committed
test
1 parent e280082 commit c7d5c4e

3 files changed

Lines changed: 50 additions & 37 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/publish-docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Publish Docs
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
types: [opened, synchronize, reopened, closed]
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
statuses: write
14+
id-token: write
15+
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: true
19+
20+
jobs:
21+
build-and-deploy:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout 🛎️
25+
uses: actions/checkout@v3
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: '20'
31+
32+
- name: Install and Build 🔧
33+
run: |
34+
npm ci
35+
npm run build
36+
37+
- name: Deploy Preview deploy-preview 🚀
38+
uses: rossjrw/pr-preview-action@v1
39+
with:
40+
source_dir: ./build/
41+
preview_branch: gh-pages-pr-previews
42+
umbrella_dir: pr-preview
43+
action: auto
44+
45+
- name: Deploy to GitHub Pages 🚀
46+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
47+
uses: JamesIves/github-pages-deploy-action@4.1.4
48+
with:
49+
branch: gh-pages
50+
folder: build

0 commit comments

Comments
 (0)