From 3141c9ffdce09639b23bb78548cbb57bb1523ad8 Mon Sep 17 00:00:00 2001 From: Vegard Smines Date: Tue, 5 Sep 2023 12:15:33 +0200 Subject: [PATCH] cleaned up main.yml heroku section --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b381e1df..22323f01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,22 +43,26 @@ jobs: - name: Upload example-app build files - #if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' uses: actions/upload-artifact@v3 with: name: example-app path: example-app/target/*.jar deploy: - #if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' name: Deploy to Heroku runs-on: ubuntu-latest needs: build steps: + - name: Checkout repo + uses: actions/checkout@v3 - name: Download production-ready build files - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: example-app + - name: ls + run: ls -la - name: Build, Push and Release a Docker container to Heroku uses: gonuit/heroku-docker-deploy@v1.3.3