Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
publish artifacts to github packages repository
Browse files Browse the repository at this point in the history
  • Loading branch information
elmi82 committed Dec 23, 2022
1 parent 925c1c7 commit 0e9182c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 23 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish-artifacts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish package to GitHub Packages
on:
# release:
# types: [created]
pull_request:
branches: [ master ]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '7'
distribution: 'zulu'
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 9 additions & 22 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<name>OAuth for Spring Security</name>
<description>Parent Project for OAuth Support for Spring Security</description>
<packaging>pom</packaging>
<version>2.0.13.RELEASE</version>
<version>2.0.13.6.HEIMDALL</version>
<url>http://static.springframework.org/spring-security/oauth</url>

<modules>
<module>spring-security-oauth</module>
<!-- <module>spring-security-oauth</module> -->
<module>spring-security-oauth2</module>
<module>tests</module>
<module>samples</module>
<!-- <module>tests</module> -->
<!-- <module>samples</module> -->
<!--module>spring-security-jwt</module-->
</modules>

Expand Down Expand Up @@ -473,25 +473,12 @@
</plugins>
</reporting>

<distributionManagement>

<site>
<id>static.springframework.org</id>
<url>scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-security/oauth</url>
</site>

<distributionManagement>
<repository>
<id>repo.spring.io</id>
<name>Spring Release Repository</name>
<url>http://repo.spring.io/libs-release-local</url>
<id>github</id>
<name>GitHub tadodotcom Apache Maven Packages</name>
<url>https://maven.pkg.github.com/tadodotcom/spring-security-oauth</url>
</repository>

<snapshotRepository>
<id>repo.spring.io</id>
<name>Spring Snapshot Repository</name>
<url>http://repo.spring.io/libs-snapshot-local</url>
</snapshotRepository>

</distributionManagement>
</distributionManagement>

</project>
2 changes: 1 addition & 1 deletion spring-security-oauth2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth-parent</artifactId>
<version>2.0.13.RELEASE</version>
<version>2.0.13.6.HEIMDALL</version>
</parent>

<artifactId>spring-security-oauth2</artifactId>
Expand Down

0 comments on commit 0e9182c

Please sign in to comment.