Skip to content

Commit

Permalink
Trying artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
santanusinha committed Jun 24, 2024
1 parent b6fca0a commit 0b695a0
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- '*' # Push events to every tag not containing /

jobs:
build:
deploy-java:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand All @@ -26,6 +26,24 @@ jobs:

- name: Build with Maven
run: mvn -B package -DskipTests
# - name: Deploy with Maven
# run: mvn -B deploy -DskipTests
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Save Executor jar for next job
uses: actions/upload-artifact@v4
with:
name: drove-executor
path: drove-executor/target/drove-executor-${{ github.ref_name }}.jar
retention-days: 1
overwrite: true
- name: Save Controller jar for next job
uses: actions/upload-artifact@v4
with:
name: drove-controller
path: drove-controller/target/drove-controller-${{ github.ref_name }}.jar
retention-days: 1
overwrite: true

deploy:
needs: build
Expand All @@ -45,11 +63,17 @@ jobs:
packages: write

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Create directories
run: mkdir -p ${{ matrix.context }}/target

# - name: Deploy with Maven
# run: mvn -B deploy -DskipTests
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download artifacts from build step
uses: actions/download-artifact@v4
with:
name: ${{ matrix.context }}
path: ${{ matrix.context }}/target

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand Down

0 comments on commit 0b695a0

Please sign in to comment.