Skip to content

Commit

Permalink
uploaded workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-dvsa committed Apr 30, 2024
1 parent b0db183 commit 32dffa6
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 38 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CD

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4

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

- name: Build with Maven
run: |
mvn -B -P github package -file pom.xml
mkdir staging && cp target/*.jar staging
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: Package
path: staging
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4

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

- name: Test dependency
run: mvn test

- name: Build with Maven
run: |
mvn -B -P github package -file pom.xml
mkdir staging && cp target/*.jar staging
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: Package
path: staging





38 changes: 0 additions & 38 deletions .github/workflows/maven-publish.yml

This file was deleted.

0 comments on commit 32dffa6

Please sign in to comment.