use ssh deploy

This commit is contained in:
sarisia 2020-08-12 15:42:07 +09:00
parent 1b7d631c07
commit 7dce295f0e

View file

@ -12,10 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: TOC Generator
uses: neuenmuller/toc-generator@3d54e40125014baed3ba75617c44af2a42b9f67d
- uses: actions/checkout@v2
with:
TARGET_PATHS: README.md
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TOC_TITLE: ''
ENTIRE: true
ssh-key: ${{ secrets.DEPLOY_KEY }}
- run: sudo npm i --global neuenmuller/doctoc#entire
- run: doctoc --entire --notitle README.md
- name: setup git user
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- run: |
git add .
git commit -m "docs: update toc" || true
git push