Skip to content

Commit

Permalink
updated CI and CD file
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-dvsa committed May 6, 2024
1 parent 9351152 commit 0f31a4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: CD

on:
push:
# push:
pull_request

jobs:
build:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: CI

on:
pull_request:
# pull_request:
push

jobs:
build:
Expand All @@ -23,7 +24,14 @@ jobs:
- name: Build with Maven
run: |
mvn -B -P github package -file pom.xml
mkdir staging && cp target/*.jar staging
cat $GITHUB_WORKSPACE/settings.xml
# mkdir staging && cp target/*.jar staging

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_USER_REF: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
GITHUB_TOKEN_REF: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}

- name: upload artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 0f31a4f

Please sign in to comment.