Merge pull request #121 from autonomys/feat/add-support-for-consensus… #74
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: Build and Deploy Discord Bot | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: aws-actions/setup-sam@v1 | |
| - 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: ${{ secrets.AWS_REGION }} | |
| - name: NPM Clean Install | |
| run: cd discord-bot && yarn install --frozen-lockfile | |
| - name: Build and Deploy Serverless Bot on AWS | |
| run: cd discord-bot && yarn build && yarn deploy | |
| env: | |
| # Discord Bot Token, Guild ID and Client ID | |
| TOKEN: ${{ secrets.TOKEN }} | |
| PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }} | |
| CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
| GUILD_ID: ${{ secrets.GUILD_ID }} | |
| # Faucet Contract Address and Minter Private Key | |
| CONTRACT_ADDRESS: ${{ secrets.CONTRACT_ADDRESS }} | |
| PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
| # Autonomys EVM-Domain Token Symbol, RPC Endpoint and Blockscout Explorer URL | |
| TOKEN_SYMBOL: ${{ secrets.TOKEN_SYMBOL }} | |
| RPC_ENDPOINT: ${{ secrets.RPC_ENDPOINT }} | |
| EXPLORER_URL: ${{ secrets.EXPLORER_URL }} | |
| # Debug Mode (true/false) | |
| DEBUG_MODE: ${{ secrets.DEBUG_MODE }} | |
| # Slack integration | |
| SLACK_ENABLED: ${{ secrets.SLACK_ENABLED }} | |
| SLACK_BALANCE_NOTIFICATION_THRESHOLD: ${{ secrets.SLACK_BALANCE_NOTIFICATION_THRESHOLD }} # This amount * the withdraw amount is the threshold | |
| SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} | |
| SLACK_CONVERSATION_ID: ${{ secrets.SLACK_CONVERSATION_ID }} | |
| # FaunaDB integration | |
| FAUNA_DB_SECRET: ${{ secrets.FAUNA_DB_SECRET }} |