Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
# on:
# push:
# branches:
# - staging
# name: "Testing"
# jobs:
# pushToTest:
# name: Push to TEST
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - name: Set Up Node
# uses: actions/setup-node@v1
# with:
# node-version: '10.15'
# - run: npm run-script build
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: us-east-2
# - run: aws s3 cp /home/runner/work/WIM-Main-Site/WIM-Main-Site/builds/production/ s3://test.wim.usgs.gov/ --recursive
# - name: AWS Test Failure
# if: failure()
# uses: Ilshidur/action-slack@2a8ddb6db23f71a413f9958ae75bbc32bbaa6385
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# with:
# args: ":warning::test: Error deploying *wim-main-site* to test.wim.usgs.gov - GitHub Action Failed"
# - name: GitHub Action for Slack
# uses: Ilshidur/action-slack@2a8ddb6db23f71a413f9958ae75bbc32bbaa6385
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# with:
# args: ":test: Successfully deployed *wim-main-site* to test.wim.usgs.gov :fire:"