Skip to content

Commit

Permalink
Deploy website to Github Pages
Browse files Browse the repository at this point in the history
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
julienduchesne committed Dec 6, 2022
1 parent 5bc978b commit e6caed0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish-page.yml
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/build/

- name: Deploy preview
if: github.event_name == 'pull_request'
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./docs/build/
5 changes: 0 additions & 5 deletions netlify.toml

This file was deleted.

0 comments on commit e6caed0

Please sign in to comment.