-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.01 KB
/
gh-pages.yml
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
44
45
46
47
48
name: GitHub Pages
on:
push:
branches:
- main # Set a branch name to trigger deployment
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Deploy Current Version
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./
target-folder: ./
clean: true
clean-exclude: |
v1/
deploy-v1:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
ref: release/v1
- name: Deploy Version One
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./
target-folder: ./v1/
clean: true