Skip to content

Commit

Permalink
- deploy parent pom
Browse files Browse the repository at this point in the history
- core snapshot
  • Loading branch information
atakavci committed Nov 18, 2024
1 parent 7a0b2b0 commit 745d9ba
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 46 deletions.
97 changes: 53 additions & 44 deletions .github/workflows/core_snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,55 @@
---

name: Publish Snapshot-Core

on:
push:
branches:
- master
- '[0-9].x'
workflow_dispatch:

jobs:

snapshot:
name: Deploy Snapshot-Core
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./core
steps:
- uses: actions/checkout@v2
- name: Set up publishing to maven central
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.m2/repository
/var/cache/apt
key: core-${{hashFiles('**/pom.xml')}}
- name: mvn offline
run: |
mvn -q dependency:go-offline
- name: deploy
run: |
mvn --no-transfer-progress \
-DskipTests deploy
env:
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}}
name: Publish Snapshot-Core

on:
push:
branches:
- master
- '[0-9].x'
workflow_dispatch:

jobs:

snapshot:
name: Deploy Snapshot-Core
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./core
steps:
- uses: actions/checkout@v2
- name: Set up publishing to maven central
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.m2/repository
/var/cache/apt
key: core-${{hashFiles('**/pom.xml')}}
- name: mvn offline
run: |
mvn -q dependency:go-offline
- name: deploy parent
run: |
mvn --no-transfer-progress \
-DskipTests deploy -N
working-directory: .
env:
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}}
- name: deploy
run: |
mvn --no-transfer-progress \
-DskipTests deploy
env:
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}}

2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: deploy
run: |
mvn --no-transfer-progress \
-DskipTests deploy
-DskipTests deploy -N
env:
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}}
2 changes: 1 addition & 1 deletion entraid/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<dependency>
<groupId>redis.clients.authentication</groupId>
<artifactId>redis-authx-core</artifactId>
<version>0.1.0</version>
<version>0.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
Expand Down

0 comments on commit 745d9ba

Please sign in to comment.