Merge pull request #120 from autonomys/fix/remove-fauna-db #71
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
| 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 && npm ci | |
| - name: Deploy Serverless Bot on AWS | |
| run: cd discord-bot && npm run 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 }} |