File tree 3 files changed +39
-0
lines changed
3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy example site
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v2
12
+ - name : Deploy
13
+ uses : JamesIves/github-pages-deploy-action@v4
14
+ with :
15
+ branch : gh-pages
16
+ folder : test
Original file line number Diff line number Diff line change
1
+ name : Preview example site
2
+ on :
3
+ pull_request :
4
+ types :
5
+ - opened
6
+ - reopened
7
+ - synchronize
8
+ - closed
9
+ concurrency : preview-${{ github.ref }}
10
+ jobs :
11
+ deploy-preview :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v2
16
+
17
+ - name : Deploy preview
18
+ uses : rossjrw/pr-preview-action@v0
19
+ with :
20
+ source-dir : test
Original file line number Diff line number Diff line change
1
+ < p > Hello, world!</ p >
2
+ < p > This is a demonstration of the PR Preview action.</ p >
3
+ < p > < a href ="https://github.com/rossjrw/pr-preview-action "> Learn more</ a > </ p >
You can’t perform that action at this time.
0 commit comments