Create LICENSE #22
This file contains 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: Deploy Matrix Bot | |
on: | |
push: | |
branches: | |
- main # or the branch you want to trigger the deployment | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: DeployBot | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Dependencies | |
run: npm install | |
- 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 }} |