diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 026e10b..0ff9aec 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,7 @@ on: jobs: deploy: runs-on: ubuntu-latest + environment: DeployBot steps: - name: Checkout Repository @@ -24,14 +25,12 @@ jobs: - name: Build run: npm run build + # - name: Obtain BOT-ACCESS-TOKEN + # id: get_bot_access_token + # run: node dist/bot-login.js + + # - name: Set BOT_ACCESS_TOKEN as a secret + # run: echo "BOT_ACCESS_TOKEN=${{ env.BOT_ACCESS_TOKEN }}" >> $GITHUB_ENV + - name: Run Matrix Bot run: node dist/basic-bot.js - - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - BOT_HOMESERVER: ${{ secrets.BOT_HOMESERVER }} - BOT_USERNAME: ${{ secrets.BOT_USERNAME }} - BOT_PASSWORD: ${{ secrets.BOT_PASSWORD }} - BOT_STORE: ${{ secrets.BOT_STORE }} - BOT_CRYPT: ${{ secrets.BOT_CRYPT }} - BOT_ACCESS_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}