feat: add pull section to git blog #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |