Skip to content

Commit

Permalink
Merge pull request #193 from project-husky/remove-deploy
Browse files Browse the repository at this point in the history
Update java_ci.yml
  • Loading branch information
project-husky-owner authored Oct 6, 2024
2 parents 8eb7616 + 85eae5b commit 1ec68c5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/java_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ jobs:

- name: Build and test with Maven
run: mvn clean install --batch-mode --no-transfer-progress --file pom.xml

- name: Deploy snapshot
env:
ARTF_USER: ${{ secrets.ARTF_USER }}
ARTF_PASS: ${{ secrets.ARTF_PASS }}
run: printenv
# run: mvn install javadoc:jar source:jar deploy --batch-mode --no-transfer-progress --file pom.xml -s $GITHUB_WORKSPACE/settings.xml

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/publish_snapshot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# this workflow will deploy SNAPSHOT on pushes to develop branch

name: Java CI with Maven

on:
push:
branches: [ develop ]

jobs:
build:
name: Deploy SNAPSHOT
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'java' ]

steps:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Build and test with Maven
env:
ARTF_USER: ${{ secrets.ARTF_USER }}
ARTF_PASS: ${{ secrets.ARTF_PASS }}
run: mvn clean install deploy --batch-mode --no-transfer-progress --file pom.xml -s $GITHUB_WORKSPACE/settings.xml

0 comments on commit 1ec68c5

Please sign in to comment.