-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.07 KB
/
dev.yaml
File metadata and controls
45 lines (41 loc) · 1.07 KB
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
42
43
44
45
name: "Dev"
on:
workflow_dispatch:
push:
branches-ignore: [master]
paths:
- ".github/workflows/dev.yaml"
- ".vitepress/**"
- "docs/**"
- "package*.json"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: "Build"
if: ${{ !contains(github.event.head_commit.message, '#nodev') }}
uses: cssnr/workflows/.github/workflows/npm-build.yaml@master
permissions:
contents: read
with:
build: "npm run build"
path: ".vitepress/dist"
secrets:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
deploy:
name: "Deploy"
uses: cssnr/workflows/.github/workflows/deploy-static.yaml@master
needs: build
permissions:
contents: read
with:
name: "dev"
url: "https://dev-static.cssnr.com/"
robots: true
secrets:
host: ${{ secrets.DEV_DEPLOY_HOST }}
port: ${{ secrets.DEV_DEPLOY_PORT }}
user: ${{ secrets.DEV_DEPLOY_USER }}
pass: ${{ secrets.DEV_DEPLOY_PASS }}
webhook: ${{ secrets.DISCORD_WEBHOOK }}