1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/.github/workflows/docs.yml

19 lines
615 B
YAML
Raw Normal View History

2020-02-08 21:06:50 +09:00
name: docs
on: push
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with: { node-version: 12 }
- run: yarn
2020-02-08 21:30:24 +09:00
- run: NEXT_ASSET_PREFIX=/${GITHUB_REPOSITORY#*/} yarn doc
2020-02-08 21:06:50 +09:00
- run: git add docs
2020-02-08 21:30:24 +09:00
- run: git -c user.name=octocat -c user.email=octocat@github.com commit -m docs
2020-02-08 21:06:50 +09:00
- run: git remote set-url github "https://${NAME}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
env:
NAME: octocat
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: git push github "${GITHUB_REF}"