Skip to content

Commit

Permalink
cleaned up main.yml heroku section
Browse files Browse the repository at this point in the history
  • Loading branch information
vegarrsm committed Sep 5, 2023
1 parent c93bea7 commit 3141c9f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit 3141c9f

Please sign in to comment.