mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
create docs action
This commit is contained in:
parent
ac2cb5bd21
commit
ca7ee4f617
1 changed files with 19 additions and 0 deletions
19
.github/workflows/docs.yml
vendored
Normal file
19
.github/workflows/docs.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
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
|
||||||
|
- run: yarn doc
|
||||||
|
- run: git add docs
|
||||||
|
- run: git commit -m docs
|
||||||
|
env: { EMAIL: octocat@github.com }
|
||||||
|
- 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}"
|
Loading…
Add table
Reference in a new issue