diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8b1d55..cf744f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,32 +1,4 @@ -name: Docker Build - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Build Docker image - run: docker build -t discord-badge . - - - name: Run Docker container - run: | - docker run -d -e TOKEN=${{ secrets.DISCORD_TOKEN }} discord-badge - - - - -name: Publish Docker Image +name: Build and Publish Docker Image on: push: