feat: remove help command #17
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: Publish Discord Bot | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'discord-bot/**' | |
workflow_dispatch: | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
arch: [arm64] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Re-register commands | |
working-directory: ./discord-bot | |
env: | |
CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }} | |
CLIENT_TOKEN: ${{ secrets.DISCORD_CLIENT_TOKEN }} | |
run: | | |
npm install | |
npm run commands:clear | |
npm run commands:register | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
with: | |
platforms: ${{ matrix.arch }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./discord-bot | |
push: true | |
platforms: linux/arm64 | |
tags: ${{ secrets.DOCKERHUB_USERNAME }}/mc-discord-bot:latest | |
- name: Logout of Docker Hub | |
run: | | |
docker logout |