π Deploy Code to GH Pages #324
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }} |