Skip to content

Commit b9d9ca0

Browse files
committed
👷 Update deploy ci
1 parent 17c453e commit b9d9ca0

File tree

1 file changed

+7
-26
lines changed

1 file changed

+7
-26
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,7 @@ on:
44
types: [created]
55
workflow_dispatch:
66
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>
317
upload:
32-
needs: [build]
338
name: Upload to CDN
349
runs-on: ubuntu-latest
3510
steps:
@@ -42,4 +17,10 @@ jobs:
4217
space_region: ${{ secrets.SPACE_REGION }}
4318
source: "dist/drkmd-js.min.js"
4419
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

0 commit comments

Comments
 (0)