From ab64f2a90db4194c34f35542a5411814a28b2408 Mon Sep 17 00:00:00 2001 From: gabrielkheisa Date: Mon, 8 Apr 2024 00:39:21 +0700 Subject: [PATCH] fix --- .github/workflows/main.yml | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) 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: