Create onosaidontheosaid.mdx #716
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
name: deploy-production | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: master | |
- 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: ap-south-1 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install Packages | |
run: npm install --legacy-peer-deps | |
- name: Build Site | |
run: npm run build | |
- name: Deploy Site | |
run: npm run deploy | |
# - name: Notify on Slack | |
# uses: rtCamp/action-slack-notify@v2 | |
# env: | |
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
# SLACK_MESSAGE: "Deployed website to production environment" | |
# SLACK_TITLE: "deploy-production workflow complete" | |
# SLACK_COLOR: "#020637" | |
# SLACK_ICON: https://tattle-media.s3.amazonaws.com/monogram-dark.svg |