File tree Expand file tree Collapse file tree 1 file changed +7
-26
lines changed Expand file tree Collapse file tree 1 file changed +7
-26
lines changed Original file line number Diff line number Diff line change 4
4
types : [created]
5
5
workflow_dispatch :
6
6
jobs :
7
- build :
8
- name : Build and Commit
9
- runs-on : ubuntu-latest
10
- if : " !contains(github.event.head_commit.message, '[skip ci]')"
11
- steps :
12
- - name : Checkout
13
- uses : actions/checkout@v2
14
- - name : Setup Node.js
15
- uses : actions/setup-node@v2
16
- with :
17
- node-version : 14
18
- - name : Cache node modules
19
- uses : c-hive/gha-npm-cache@v1
20
- - name : Install dependencies
21
- run : npm ci
22
- - name : Run build command
23
- run : npm run build
24
- - name : Commit build
25
- uses : stefanzweifel/git-auto-commit-action@v4.9.2
26
- with :
27
- commit_message : " :rocket: Deploy new version [skip ci]"
28
- commit_user_name : BetaHuhn Bot
29
- commit_user_email : bot@mxis.ch
30
- commit_author : BetaHuhn Bot <bot@mxis.ch>
31
7
upload :
32
- needs : [build]
33
8
name : Upload to CDN
34
9
runs-on : ubuntu-latest
35
10
steps :
42
17
space_region : ${{ secrets.SPACE_REGION }}
43
18
source : " dist/drkmd-js.min.js"
44
19
out_dir : " dist/drkmd-js"
45
- versioning : true
20
+ versioning : true
21
+ purge :
22
+ name : Purge JSDelivr
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - name : Send Purge request to JSDelivr
26
+ run : curl https://purge.jsdelivr.net/npm/drkmd-js/dist/drkmd-js.min.js
You can’t perform that action at this time.
0 commit comments