Skip to content

Commit

Permalink
ci: update deploy website flow
Browse files Browse the repository at this point in the history
  • Loading branch information
donskov committed Jan 12, 2024
1 parent 1c8674f commit 4295525
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 56 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js CI
name: Build and test library

on: [push, pull_request]

Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/publish.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and publish website

on:
push:
branches:
- "master"

jobs:
pages:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'

- name: Install library dependencies
run: yarn install --frozen-lockfile

- name: Build library
run: yarn build

- name: Install website dependencies
run: yarn install --frozen-lockfile --cwd website

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

- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/build

0 comments on commit 4295525

Please sign in to comment.