From 818d002e8b37a23dadb493c76046984f5f251855 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 8 Oct 2020 16:01:05 -0700 Subject: [PATCH] build: upload docs --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9c31c3f..678efdae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,3 +38,15 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_WOMBAT_TOKEN }} + - run: | + npm i + npm run docs + cp -r dist docs/dist + cp -r examples docs/examples + - uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs + user_name: 'googlemaps-bot' + user_email: 'googlemaps-bot@users.noreply.github.com' + commit_message: ${{ github.event.head_commit.message }}