Skip to content

Commit abcd50a

Browse files
committed
Add example site and workflows
1 parent 6e85e08 commit abcd50a

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.github/workflows/deploy-example.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

.github/workflows/preview-example.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

test/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
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>

0 commit comments

Comments
 (0)