-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.29 KB
/
pubilsh.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
name: Gatsby Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: chrnorm/[email protected]
name: Create GitHub Deployment
id: deployment
with:
token: '${{ github.token }}'
environment: demo
- uses: chrnorm/[email protected]
name: Deployment progress
with:
token: '${{ github.token }}'
state: in_progress
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
- uses: actions/checkout@v1
- uses: enriikke/gatsby-gh-pages-action@v2
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
deploy-branch: gh-pages
gatsby-args: --prefix-paths
- uses: chrnorm/[email protected]
name: Deployment success
if: success()
with:
token: '${{ github.token }}'
state: success
environment_url: https://woly-ui.github.io/demo
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
- uses: chrnorm/[email protected]
name: Deployment failure
if: failure()
with:
token: '${{ github.token }}'
state: failure
deployment_id: ${{ steps.deployment.outputs.deployment_id }}