-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (40 loc) · 1.57 KB
/
cleavr_uf6homu3kr.yml
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
46
47
48
# This GitHub Actions workflow is generated and deployed by https://cleavr.io
# The filename, cleavr_uf6homu3kr, of this workflow is tracked from within Cleavr,
# please don't change the name. Though, feel free to add your own steps or tweak
# the existing ones except anything listed below the warning message.
# Read more about Cleavr's GitHub Actions integration feature at: https://bit.ly/397WKh6
name: Deploy docs.cleavr.io App with Cleavr
on:
workflow_dispatch:
push:
branches:
# This is the branch that gets deployed when a push is made to this repository.
# If you change the default branch in Cleavr under the Webapp's settings, make sure to change it here as well.
- master
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: bahmutov/npm-install@v1
- name: Build site
run: npm run generate --fail-on-error
### --- PLEASE DO NOT MODIFY ANYTHING BELOW THIS LINE --- ###
- name: Generate artifact name
id: artifact
uses: nanzm/[email protected]
with:
timeZone: 8
format: 'YYYYMMDDHHmmss'
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: '${{ steps.artifact.outputs.time }}'
path: dist/
- name: Start Cleavr Deployment
uses: fjogeleit/http-request-action@master
with:
url: '${{ secrets.DEPLOY_TRIGGER_HOOK_cleavr_uf6homu3kr }}'
method: 'POST'
timeout: 60000
customHeaders: '{"artifact": "${{ steps.artifact.outputs.time }}"}'