Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update java_ci.yml #193

Merged
merged 2 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading