Skip to content

Commit

Permalink
Add worfklow for mater branch and publish package into Git packages
Browse files Browse the repository at this point in the history
  • Loading branch information
okmoch_pure committed Nov 5, 2023
1 parent b4c74e4 commit e4d7dd5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Main branch publish
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@
</dependency>
</dependencies>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/kmoco2am/sonar-r-plugin</url>
</repository>
</distributionManagement>

<build>
<pluginManagement>
<plugins>
Expand Down

0 comments on commit e4d7dd5

Please sign in to comment.