Skip to content

Commit

Permalink
feat: packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Changolaxtra committed Dec 18, 2023
1 parent cbfed04 commit 2794d5a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Deploy

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B clean package
- name: Deploy
run: mvn deploy -Dregistry=https://maven.pkg.github.com/Changolaxtra -Dtoken=${{ secrets.GITHUB_TOKEN }}
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>com.changolaxtra.cloud</groupId>
<artifactId>rate-limiter</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2</version>
<name>rate-limiter</name>
<description>Rate Limiter library for Spring Web</description>

Expand All @@ -24,6 +24,14 @@
<maven-release-plugin.version>3.0.1</maven-release-plugin.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Changolaxtra/rate-limiter</url>
</repository>
</distributionManagement>

<scm>
<connection>scm:git:${project.scm.url}</connection>
<developerConnection>scm:git:${project.scm.url}</developerConnection>
Expand Down

0 comments on commit 2794d5a

Please sign in to comment.