This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
Update README.md #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- dev | |
name: Deploy to Test site | |
jobs: | |
deployToTest: | |
name: Deploy to Test Site | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set Up Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '10.15' | |
- run: npm run-script build-test | |
- 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/fim-harrisonville-mo/fim-harrisonville-mo/dist/ s3://test.wim.usgs.gov/fim-harrisonville-mo --recursive | |
- name: GitHub Action for Slack | |
uses: Ilshidur/action-slack@689ad44a9c9092315abd286d0e3a9a74d31ab78a | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
with: | |
args: "Successfully deployed to https://test.wim.usgs.gov/fim-harrisonville-mo :fire:" |