-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (64 loc) · 2.3 KB
/
package-ui.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: CI
on:
push:
branches: [ main ]
concurrency:
group: package-ui
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
- name: Install dependencies
run: npm ci
- name: Package UI
run: gulp bundle
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: ui-bundle
path: build/ui-bundle.zip
retention-days: 1
- name: Push bundle
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add build/ui-bundle.zip
git commit -am "Automated bundle"
git push
# This step dispatches an event to run the CD workflow of plenty-developers-docs
- name: Rebuild developers site
uses: peter-evans/repository-dispatch@ce5485de42c9b2622d2ed064be479e8ed65e76f4
with:
token: ${{ secrets.ORGA_PAT_CICD1_FULL_REPO_AND_PACKAGES }}
repository: plentymarkets/plenty-developers-docs
event-type: UIBundleUpdate
client-payload: '{ "repository": "${{github.repository}}" }'
# This step dispatches an event to run the CD workflow of plenty-manual-docs
- name: Rebuild knowledge site
uses: peter-evans/repository-dispatch@ce5485de42c9b2622d2ed064be479e8ed65e76f4
with:
token: ${{ secrets.ORGA_PAT_CICD1_FULL_REPO_AND_PACKAGES }}
repository: plentymarkets/plenty-manual-docs
event-type: UIBundleUpdate
client-payload: '{ "repository": "${{github.repository}}" }'
notification:
name: Google chat notification
needs: build
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- name: Google Chat Notification Failure
if: ${{ needs.build.result == 'failure' }}
uses: Co-qn/google-chat-notification@releases/v1
with:
name: UI Build
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_FAILURE }}
status: ${{ needs.build.result }}