Skip to content

πŸš€ Deploy Code to GH Pages #333

πŸš€ Deploy Code to GH Pages

πŸš€ Deploy Code to GH Pages #333

Workflow file for this run

---
name: πŸš€ Deploy Code to GH Pages
on:
workflow_run:
workflows:
- "πŸ“– Code"
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: ‡️ Check out code from GitHub
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: ♻️ Prepare
run: |
command mkdir -p gh-pages/code gh-pages/zsh
command cp -vrf code/zsdoc/html gh-pages/code/
- name: πŸš€ Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./gh-pages
allow_empty_commit: true
keep_files: true
user_name: ${{ secrets.ACTIONS_USER }}
user_email: ${{ secrets.ACTIONS_MAIL }}