-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (33 loc) · 931 Bytes
/
push-code.yml
File metadata and controls
36 lines (33 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
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 }}