forked from MindscapeHQ/raygun4js
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (40 loc) · 1.27 KB
/
prerelease.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
name: Build & Publish Raygun4JS to the pre-release environment
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Grunt
run: npm install -g grunt
- name: Install node modules
run: npm install
- name: Build
run: grunt build
- name: Complete
run: echo Build successfully completed!
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.AWS_ACCESS_SECRET }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Publish to S3 Pre-release
run: aws s3 sync ./dist ${{ secrets.AWS_PUBLISH_TARGET }}
- name: Deployment Complete
run: echo A new version of Raygun4JS has been deployed to pre-release!
- name: Notify Slack
id: slack
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}