-
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (36 loc) · 1.04 KB
/
deploy.yml
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
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Generate dummies
run: |
mkdir "./deploy/"
for filePath in $(find "." -name images -type d)
do
find "$filePath" -type "f" -exec bash -c '
DEPLOY_PATH=$(dirname "./deploy/$1");
DEPLOY_NAME=$(basename "$1")
if [ ! -d $DEPLOY_PATH ]; then
mkdir -p "$DEPLOY_PATH"
fi
touch "$DEPLOY_PATH/$DEPLOY_NAME"
echo "$DEPLOY_PATH/$DEPLOY_NAME"
' _ {} \;
done
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: deploy
publish_dir: ./deploy
enable_jekyll: true
full_commit_message: Deploying to gh-pages from @ ${{ github.sha }} 🚀
force_orphan: true