Skip to content

Commit

Permalink
Adding github action for releasing .jar
Browse files Browse the repository at this point in the history
  • Loading branch information
avandeursen committed Oct 6, 2020
1 parent e05a6c3 commit c9611c7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish package
run: mvn -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.sigsoft</groupId>
<artifactId>submission-checker</artifactId>
<version>0.3.0</version>
<version>0.4.0</version>
<packaging>jar</packaging>

<properties>
Expand Down Expand Up @@ -114,4 +114,12 @@
<version>1.9</version>
</dependency>
</dependencies>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/acmsigsoft/submission-checker</url>
</repository>
</distributionManagement>
</project>

0 comments on commit c9611c7

Please sign in to comment.