Skip to content

fix: add discord token to deploy action #11

fix: add discord token to deploy action

fix: add discord token to deploy action #11

Workflow file for this run

name: AWS CDK Bootstrap and Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: |
npm install -g aws-cdk
pip install -r requirements.txt
- name: Bootstrap
run: cdk bootstrap
env:
APP_NAME: ${{secrets.APP_NAME}}
DISCORD_PUBLIC_KEY: ${{ secrets.DISCORD_PUBLIC_KEY }}
ID: ${{secrets.ID}}
TOKEN: ${{secrets.TOKEN}}
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
- name: Deploy
run: cdk deploy --all --require-approval never
env:
APP_NAME: ${{secrets.APP_NAME}}
DISCORD_PUBLIC_KEY: ${{ secrets.DISCORD_PUBLIC_KEY }}
ID: ${{secrets.ID}}
TOKEN: ${{secrets.ID}}
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
- name: Register & Delete Commands
run: cd commands && python3 register_commands.py
env:
DISCORD_PUBLIC_KEY: ${{ secrets.DISCORD_PUBLIC_KEY }}
ID: ${{secrets.ID}}
TOKEN: ${{secrets.TOKEN}}