forked from liuyib/hexo-theme-stun
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.05 KB
/
files-shaking.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
37
38
39
40
41
# Delete files that are used only in development.
name: 'FilesShaking'
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js v12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Move files
id: move_files
run: |
mkdir ./dist
mv languages ./dist/languages
mv layout ./dist/layout
mv scripts ./dist/scripts
mv source ./dist/source
mv package.json ./dist/package.json
mv _config.yml ./dist/_config.yml
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./dist
publish_branch: dist
github_token: ${{ secrets.MY_GITHUB_TOKEN }}
user_name: ${{ secrets.MY_USER_NAME }}
user_email: ${{ secrets.MY_USER_EMAIL }}
commit_message: Reduce files and keep only those required at runtime
disable_nojekyll: true