-
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (43 loc) Β· 1.27 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
# Based on https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml
name: CD
on:
push:
branches:
- main
env:
BUGSPLAT_DATABASE: ${{ secrets.BUGSPLAT_DATABASE }}
SYMBOL_UPLOAD_CLIENT_ID: ${{ secrets.SYMBOL_UPLOAD_CLIENT_ID }}
SYMBOL_UPLOAD_CLIENT_SECRET: ${{ secrets.SYMBOL_UPLOAD_CLIENT_SECRET }}
jobs:
cd:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout β
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup π
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- name: Install βοΈ
run: npm ci
- name: Build π
run: npm run build:ci
- name: Test π
run: npm run test:ci
- name: Publish π’
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release
- name: Deploy π
uses: JamesIves/[email protected]
with:
repository-name: BugSplat-Git/bugsplat-git.github.io
branch: gh-pages
folder: dist/my-angular-crasher/browser
target-folder: my-angular-crasher
token: ${{ secrets.GH_TOKEN }}