diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index d923d2a..6098613 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,20 +1,20 @@ name: Deploy bot on: - push: - branches: - - main + push: + branches: + - main jobs: - build-and-deploy: - env: - TOKEN: ${{ secrets.TOKEN }} - PREFIX: ${{ secrets.PREFIX }} - steps: - - name: Checkout code - uses: actions/checkout@v3 + build-and-deploy: + env: + TOKEN: ${{ secrets.TOKEN }} + PREFIX: ${{ secrets.PREFIX }} + steps: + - name: Checkout code + uses: actions/checkout@v3 - - name: Deploy with Docker Compose - run: | - docker compose down - docker compose up -d --build + - name: Deploy with Docker Compose + run: | + docker compose down + docker compose up -d