Skip to content

feat: add pull section to git blog #12

feat: add pull section to git blog

feat: add pull section to git blog #12

Workflow file for this run

name: Deploy Docusaurus
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up SSH Key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies,
run: |
# it is for docs with markdown, so do not need to be restricted
yarn install --no-lockfile
- name: Build Docusaurus
run: yarn build
- name: Set username for git
run: git config --global user.name "nttg8100"
- name: Deploy via SSH
env:
USE_SSH: true
GIT_USER: nttg8100
run: yarn deploy