Skip to content

Commit

Permalink
chore(website): add workflow file for deploying the website
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Apr 9, 2023
1 parent 5644d10 commit f550458
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy website

on:
push:
branches:
- main
workflow_dispatch:


permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

env:
NODE_OPTIONS: --max-old-space-size=6144

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
- name: Install dependencies
working-directory: ./website
run: yarn install --frozen-lockfile --non-interactive
- name: Build
working-directory: ./website
run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: website/build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit f550458

Please sign in to comment.