Skip to content

Commit

Permalink
Trigger snapshot-publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
klymenko-galyna-ew committed Aug 29, 2023
1 parent fc5dc12 commit 5ac95b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ name: Publish package to the Maven Central Repository and create GitHub Release

on:
push:
branches:
- dev
# tags:
# - v*
# pull_request:
# branches: [ main ]
tags:
- v*
pull_request:
branches: [ main ]

jobs:
publish:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/snapshot-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '11'
distribution: 'adopt'
- name: Publish package
run: mvn --batch-mode deploy -DrepositoryId=github -Dmaven.deploy.skip=true
run: mvn --batch-mode deploy -DrepositoryId=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.JAVA_TOKEN }}
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.extrawest</groupId>
<artifactId>Extrawest-OCPI-2.2.1-CPO-Server</artifactId>
<version>2023.8.24</version>
<version>2023.8.24-SNAPSHOT</version>

<name>Extrawest-OCPI-2.2.1-CPO-Server</name>
<description>Extrawest-OCPI-2.2.1-CPO-Server</description>
Expand Down Expand Up @@ -225,7 +225,7 @@

<!-- GitHub Releases -->
<snapshotRepository>
<id>github-releases</id>
<id>github</id>
<url>https://maven.pkg.github.com/extrawest/Extrawest-OCPI-2.2.1-CPO-Server</url>
<name>GitHub Package Registry</name>
<uniqueVersion>false</uniqueVersion>
Expand Down

0 comments on commit 5ac95b5

Please sign in to comment.