Skip to content

build(deps-dev): bump eslint-plugin-unicorn from 51.0.1 to 52.0.0 (#3… #553

build(deps-dev): bump eslint-plugin-unicorn from 51.0.1 to 52.0.0 (#3…

build(deps-dev): bump eslint-plugin-unicorn from 51.0.1 to 52.0.0 (#3… #553

Workflow file for this run

name: Deploy website to GitHub Pages
# Based on https://raw.githubusercontent.com/actions/starter-workflows
on:
# Runs on pushes targeting the main branch
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
FORCE_COLOR: 2
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4.0.2
with:
# Use current Node LTS version
node-version: lts/*
cache: 'npm'
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Install website dependencies
run: cd website && npm ci
- name: Sync Crowdin
run: cd website && npm run crowdin:sync
continue-on-error: true
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Build docs
run: cd website && npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./website/build
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4