Skip to content

Commit

Permalink
Test prerelease action
Browse files Browse the repository at this point in the history
  • Loading branch information
redJ4y committed Aug 19, 2024
1 parent 21d9efb commit 2bc9f18
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build & Publish Raygun4JS to the pre-release environment

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
Expand All @@ -11,13 +9,13 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [20.16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -33,21 +31,22 @@ jobs:
- 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 }}
# - 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 }}
#

0 comments on commit 2bc9f18

Please sign in to comment.