From ca7ee4f6176a5296b974f2d03afdbbabc8522b9c Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 8 Feb 2020 21:06:50 +0900 Subject: [PATCH] create docs action --- .github/workflows/docs.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..47ee578 --- /dev/null +++ b/.github/workflows/docs.yml @@ -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}"