Skip to content

Merge pull request #238 from wix-incubator/dependabot/npm_and_yarn/ty… #144

Merge pull request #238 from wix-incubator/dependabot/npm_and_yarn/ty…

Merge pull request #238 from wix-incubator/dependabot/npm_and_yarn/ty… #144

Workflow file for this run

name: Website
on:
push:
branches:
- master
paths:
- .github/workflows/website.yml
- website/**
- package.json
- yarn.lock
pull_request:
branches:
- master
defaults:
run:
working-directory: website
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout Repo
uses: actions/checkout@v3
- name: ⬢ Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
- name: 📦 Install Packages
run: yarn install --frozen-lockfile
- name: 🌐 Build Website
run: yarn build
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: ⬆️ Deploy to GitHub Pages
# Deploy only upon pushes to master branch
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: website/build