Skip to content

Commit

Permalink
gh-pages actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ghxiao committed Aug 19, 2021
1 parent 4adea39 commit 0252636
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@ jobs:
cache: 'yarn'
- run: yarn install
- run: yarn docs:build
- name: Deploy with gh-pages
run: |
# git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn run gh-pages -d .vuepress/dist -u "github-actions-bot <[email protected]>" --repo https://git:${{ secrets.GITHUB_TOKEN }}@github.com/ontop/ontop.github.io.git --branch master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: ontop/ontop.github.io
publish_branch: main # default: gh-pages
publish_dir: .vuepress/dist
# - name: Deploy with gh-pages
# run: |
# # git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
#
# yarn run gh-pages -d .vuepress/dist -u "github-actions-bot <[email protected]>" --repo https://git:${{ secrets.GITHUB_TOKEN }}@github.com/ontop/ontop.github.io.git --branch master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0252636

Please sign in to comment.