-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathhiggs-shop-deploy-github-pages.yml
More file actions
49 lines (42 loc) · 1.45 KB
/
higgs-shop-deploy-github-pages.yml
File metadata and controls
49 lines (42 loc) · 1.45 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
46
47
48
49
name: Deploy Higgs Shop to Github Pages
on:
workflow_run:
workflows: ['Release Higgs Shop']
types:
- completed
branches:
- main
defaults:
run:
working-directory: core-sdk-samples/higgs-shop-sample-app
jobs:
deploy-github-pages:
name: Deploy Higgs Shop to Github Pages
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
env:
GIT_AUTHOR_NAME: mparticle-automation
GIT_AUTHOR_EMAIL: developers@mparticle.com
GIT_COMMITTER_NAME: mparticle-automation
GIT_COMMITTER_EMAIL: developers@mparticle.com
steps:
- name: Check out main Branch
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: npm ci
- name: Deploy to Github Pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.MP_SEMANTIC_RELEASE_BOT }}
- name: Archive npm failure logs
uses: actions/upload-artifact@v3
if: failure()
with:
name: npm-logs
path: ~/.npm/_logs