Skip to content

Commit

Permalink
Add example site and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjrw committed Feb 25, 2022
1 parent 6e85e08 commit abcd50a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/deploy-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deploy example site
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: test
20 changes: 20 additions & 0 deletions .github/workflows/preview-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Preview example site
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Deploy preview
uses: rossjrw/pr-preview-action@v0
with:
source-dir: test
3 changes: 3 additions & 0 deletions test/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>Hello, world!</p>
<p>This is a demonstration of the PR Preview action.</p>
<p><a href="https://github.com/rossjrw/pr-preview-action">Learn more</a></p>

0 comments on commit abcd50a

Please sign in to comment.