1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00

set git user

This commit is contained in:
Nebel 2020-02-09 01:07:01 +09:00
parent fb990f718f
commit c9e2ac367a

View file

@ -5,6 +5,8 @@ on:
jobs:
main:
runs-on: ubuntu-latest
env:
EMAIL: octocat@github.com
steps:
- uses: actions/checkout@v1
- run: echo "::set-env name=YARN_CACHE_DIR::$(yarn cache dir)"
@ -16,10 +18,10 @@ jobs:
- uses: actions/setup-node@v1
with: { node-version: 12 }
- run: yarn
- run: git subtree add --prefix docs origin gh-pages
- run: git -c user.name=bot subtree add --prefix docs origin gh-pages
- run: NEXT_ASSET_PREFIX=/${GITHUB_REPOSITORY#*/} yarn doc
- run: git add -f docs
- run: git -c user.name=bot -c user.email=octocat@github.com commit -m github-pages
- run: git -c user.name="$(whoami)" commit -m github-pages
- run: git remote add github "https://github:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
env: { GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" }
- run: git subtree push --prefix docs github gh-pages