-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This gets rid of netlify which we don't really need and is blocking PRs like #783 This contains two different parts: - A step that deploys to a preview for PRs - A step that deploys on a push to main
- Loading branch information
1 parent
5bc978b
commit d68c9b0
Showing
2 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# .github/workflows/preview.yml | ||
name: Deploy Github Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- closed | ||
|
||
concurrency: ci-${{ github.ref }} | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install and Build | ||
working-directory: docs | ||
run: | | ||
yarn install | ||
yarn build | ||
- name: Deploy main | ||
if: github.event_name != 'pull_request' | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
clean-exclude: pr-preview/ | ||
folder: ./docs/public/ | ||
|
||
- name: Deploy preview | ||
if: github.event_name == 'pull_request' | ||
uses: rossjrw/pr-preview-action@v1 | ||
with: | ||
source-dir: ./docs/public/ |
This file was deleted.
Oops, something went wrong.