Add RDS_SERVERLESS_PUBLIC_KEY to deploy on CD (#248) #114
This file contains hidden or 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: Register and deploy Slash Commands | |
| on: | |
| push: | |
| branches: develop | |
| jobs: | |
| Register-Commands: | |
| runs-on: ubuntu-latest | |
| environment: staging | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18.18.2 | |
| - run: npm install | |
| - run: npm run register | |
| env: | |
| DISCORD_TOKEN: ${{secrets.DISCORD_TOKEN}} | |
| DISCORD_APPLICATION_ID: ${{secrets.DISCORD_APPLICATION_ID}} | |
| DISCORD_GUILD_ID: ${{secrets.DISCORD_GUILD_ID}} | |
| Deploy-to-Cloudflare: | |
| needs: [Register-Commands] | |
| runs-on: ubuntu-latest | |
| environment: staging | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - run: npm install | |
| - uses: cloudflare/[email protected] | |
| with: | |
| apiToken: ${{secrets.CLOUDFLARE_API_TOKEN}} | |
| accountId: ${{secrets.CLOUDFLARE_ACCOUNT_ID}} | |
| secrets: | | |
| DISCORD_PUBLIC_KEY | |
| DISCORD_TOKEN | |
| DISCORD_GUILD_ID | |
| CURRENT_ENVIRONMENT | |
| BOT_PRIVATE_KEY | |
| RDS_SERVERLESS_PUBLIC_KEY | |
| CRON_JOBS_PUBLIC_KEY | |
| IDENTITY_SERVICE_PUBLIC_KEY | |
| env: | |
| CURRENT_ENVIRONMENT: staging | |
| CLOUDFLARE_API_TOKEN: ${{secrets.CLOUDFLARE_API_TOKEN}} | |
| DISCORD_PUBLIC_KEY: ${{secrets.DISCORD_PUBLIC_KEY}} | |
| DISCORD_TOKEN: ${{secrets.DISCORD_TOKEN}} | |
| BOT_PRIVATE_KEY: ${{secrets.BOT_PRIVATE_KEY}} | |
| DISCORD_GUILD_ID: ${{secrets.DISCORD_GUILD_ID}} | |
| RDS_SERVERLESS_PUBLIC_KEY: ${{secrets.RDS_SERVERLESS_PUBLIC_KEY}} | |
| CRON_JOBS_PUBLIC_KEY: ${{secrets.CRON_JOBS_PUBLIC_KEY}} | |
| IDENTITY_SERVICE_PUBLIC_KEY: ${{secrets.IDENTITY_SERVICE_PUBLIC_KEY}} |