Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hmiguim committed Nov 29, 2024
1 parent 2faf7d8 commit b0eebdb
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,39 @@ jobs:
run: mvn $MAVEN_CLI_OPTS clean package -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build CLI
run: mvn $MAVEN_CLI_OPTS clean package -Pcli -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload job artifacts
uses: actions/upload-artifact@v4
with:
name: artifact
path: target/*.jar
if-no-files-found: error
retention-days: 5
- name: Build CLI
run: mvn $MAVEN_CLI_OPTS clean package -Pcli -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy-package:
runs-on: ubuntu-latest
needs: continuous-integration
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- name: Deploy to GitHub packages
run: mvn $MAVEN_CLI_OPTS clean deploy -Dmaven.test.skip=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy-docker:
runs-on: ubuntu-latest
needs: continuous-integration
Expand All @@ -53,11 +71,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: artifact
path: docker/target/commons-ip-cits-erms.jar
- name: Copy target to docker context
run: |
mkdir -p docker/target
cp artifact/*.jar docker/target/commons-ip-cits-erms.jar
path: docker/target
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit b0eebdb

Please sign in to comment.