Skip to content

Commit

Permalink
Merge pull request #7 from Kerosene-Labs/update-workflow
Browse files Browse the repository at this point in the history
changing to release
  • Loading branch information
hlafaille authored Dec 12, 2024
2 parents 1282c08 + d44af56 commit a06f459
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
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 }}

0 comments on commit a06f459

Please sign in to comment.