diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index b32f807b..0ad81b31 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -33,6 +33,7 @@ jobs: path: | target/billtracker-0.0.1.jar publish_maven: + if: github.event_name == 'release' runs-on: ubuntu-latest needs: - build @@ -48,10 +49,10 @@ jobs: - uses: actions/download-artifact@v4 with: name: app - - run: ls - name: Publish to GitHub Packages Apache Maven run: mvn deploy -s ./settings.xml -Dgithub.token=${{ secrets.ACCESS_TOKEN }} publish_container: + if: github.event_name == 'release' runs-on: ubuntu-latest needs: - build @@ -60,4 +61,9 @@ jobs: - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3 - name: Install dependencies - run: cd src/main/frontend && npm i \ No newline at end of file + run: cd src/main/frontend && npm i + - uses: actions/download-artifact@v4 + with: + name: app + - name: Build Container Image + run: docker buil . -t ghcr.io/Kerosene-Labs/billtracker:${{ github.ref }} \ No newline at end of file