-
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.21 KB
/
cd.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
name: CD
on:
push:
branches:
- main
jobs:
release:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build Examples
run: npm run -w my-react-crasher build:pages
- name: Upload Symbols
run: npm run -w my-react-crasher symbol-upload
- name: Semantic Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: >
npx
-p semantic-release@19
-p @semantic-release/changelog@6
-p @semantic-release/exec@6
-p @semantic-release/git@10
semantic-release
- name: Deploy My React Crasher 🚀
uses: JamesIves/[email protected]
with:
repository-name: BugSplat-Git/bugsplat-git.github.io
branch: gh-pages
folder: examples/my-react-crasher/dist
target-folder: my-react-crasher
token: ${{ secrets.GH_TOKEN }}