generated from trim21/webpack-userscript-template
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 870 Bytes
/
deploy.yaml
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
name: deploy
on:
- push
# push:
# tags:
# - "v*"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- run: npm ci
- run: npm run build
- run: |
sudo apt-get install tree -y
tree -H '.' -L 1 --noreport --charset utf-8 ./dist | tee dist/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
commit_message: deploy ${{ github.ref }}
force_orphan: true
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com