From cfdf8c43ed170ce3bcfc1b4ee5ba50000e89f9e7 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Wed, 5 Feb 2020 20:11:40 +0900 Subject: [PATCH] ci: use github_token for windows-latest --- .github/workflows/test-action.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 298e4247c..8453e06b5 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -63,6 +63,7 @@ jobs: echo "::set-output name=deploy_tag_name::deploy-${TAG_NAME}" - name: Deploy + if: matrix.os != 'windows-latest' uses: ./ with: deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} @@ -79,9 +80,21 @@ jobs: # tag_name: ${{ steps.prepare_tag.outputs.deploy_tag_name }} # tag_message: 'Deployment ${{ steps.prepare_tag.outputs.tag_name }}' - # - name: Deploy v2 - # uses: peaceiris/actions-gh-pages@v2 - # env: - # ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} - # PUBLISH_BRANCH: gh-pages - # PUBLISH_DIR: ./test_projects/mdbook/book + - name: Deploy + if: matrix.os == 'windows-latest' + uses: ./ + with: + # deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + github_token: ${{ secrets.GITHUB_TOKEN }} + # personal_token: ${{ secrets.PERSONAL_TOKEN }} + # publish_branch: gh-pages + publish_dir: ./test_projects/mdbook/book + # external_repository: '' + allow_empty_commit: true + # keep_files: true + # force_orphan: true + # user_name: iris + # user_email: email@peaceiris.com + # commit_message: ${{ github.event.head_commit.message }} + # tag_name: ${{ steps.prepare_tag.outputs.deploy_tag_name }} + # tag_message: 'Deployment ${{ steps.prepare_tag.outputs.tag_name }}'