Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
CI: Automate the process of deploying website to GH Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshCasper authored and Nick Vidal committed Dec 9, 2021
1 parent c1a8f79 commit 4c1e484
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -7,10 +7,11 @@ on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
name: Build Frontend Project
name: Build the website
runs-on: ubuntu-latest
if: |
!contains(github.event.head_commit.message, 'skip-ci')
Expand All @@ -29,4 +30,13 @@ jobs:
run: yarn lint

- name: Build the website
run: yarn build
run: yarn build

- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4c1e484

Please sign in to comment.