Skip to content

πŸš€ Deploy Code to GH Pages #441

πŸš€ Deploy Code to GH Pages

πŸš€ Deploy Code to GH Pages #441

Workflow file for this run

---
name: πŸš€ Deploy Code to GH Pages
on:
workflow_run:
workflows:
- "πŸ“– Code"
types:
- completed
permissions: read-all
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
steps:
- name: ‡️ Check out code from GitHub
uses: actions/checkout@v4
- 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@v4
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 }}