-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1013 Bytes
/
preview.yaml
File metadata and controls
43 lines (39 loc) · 1013 Bytes
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
name: "Preview"
on:
workflow_dispatch:
push:
branches-ignore: [master]
paths:
- ".github/workflows/docs.yaml"
- ".github/workflows/preview.yaml"
- "docs/**"
- "src/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: "Build"
if: ${{ !contains(github.event.head_commit.message, '#nopreview') }}
uses: ./.github/workflows/docs.yaml
secrets: inherit
permissions:
contents: read
with:
name: artifact
deploy:
name: "Deploy"
uses: cssnr/workflows/.github/workflows/deploy-static.yaml@master
needs: build
permissions:
contents: read
with:
name: "preview"
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 }}