Skip to content

Commit

Permalink
Preview pull requests
Browse files Browse the repository at this point in the history
Closes gh-4.
  • Loading branch information
astrojuanlu committed Oct 9, 2022
1 parent 676fbcb commit abe45b3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ["main", "gh-pages"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/previews.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy PR previews

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@v1
with:
source-dir: .

0 comments on commit abe45b3

Please sign in to comment.