Skip to content

Commit

Permalink
ci: use peaceiris/actions-gh-pages@v3
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Feb 5, 2020
1 parent b66ed3c commit 9b37fb6
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,8 @@ jobs:
hugo --gc --minify --themesDir ../ --layoutDir ../layouts --baseURL "${BASE_URL}"
wget -O ./public/report.html "${BASE_URL}/report.html" || true
- name: Deploy (script mode)
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./exampleSite/public
SCRIPT_MODE: true
run: |
wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2/entrypoint.sh
bash ./entrypoint.sh
# - name: Deploy
# # uses: peaceiris/actions-gh-pages@v2
# uses: docker://peaceiris/gh-pages:v2
# env:
# # ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# PUBLISH_BRANCH: gh-pages
# PUBLISH_DIR: ./exampleSite/public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./exampleSite/public

0 comments on commit 9b37fb6

Please sign in to comment.