Skip to content

chore(deps): pin dependencies (#967) #111

chore(deps): pin dependencies (#967)

chore(deps): pin dependencies (#967) #111

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
paths:
- 'docs/**'
pull_request:
branches: [main]
paths:
- 'docs/**'
permissions:
contents: write
defaults:
run:
working-directory: ./docs
jobs:
test-docusaurus-build:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: lts/*
cache: yarn
- name: Install dependencies and build website
run: |
yarn install --immutable
yarn build
deploy:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: lts/*
cache: yarn
- uses: webfactory/ssh-agent@6b2f2c5354ff41f1edbbf7a17ea9b6178c89be9f # v0.5.0
with:
ssh-private-key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
- name: Deploy to GitHub Pages
env:
USE_SSH: true
run: |
git config --global user.email "vonovak@gmail.com"
git config --global user.name "Vojtech Novak"
yarn install --immutable
yarn deploy