Skip to content

update skills to run cron every week, to save costs. #205

update skills to run cron every week, to save costs.

update skills to run cron every week, to save costs. #205

name: Deploy to main
on:
push:
branches:
- main
- master
#here we choose to deploy only when a push is on main branch
jobs:
Deploy:
runs-on: ubuntu-latest
environment:
name: prd
url: https://www.arkyasmal.com
steps:
- uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
shell: bash
run: npm install
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_DEPLOY_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_DEPLOY_SECRET_KEY }}
aws-region: us-east-1
- name: Create .env file
uses: aasmal97/create-env-file@v3.1.2
with:
APP_SECRETS: ${{toJSON(secrets)}}
- name: Generate Cloud Template and Bootstrap
shell: bash
run: npm run bootstrap
- name: Deploy To AWS
shell: bash
run: npm run deploy