diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml
index 41f60e4..0cba306 100644
--- a/.github/workflows/maven-publish.yml
+++ b/.github/workflows/maven-publish.yml
@@ -1,34 +1,20 @@
-# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
-# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
-
-name: Maven Package
-
+name: Publish package to GitHub Packages
on:
release:
types: [created]
-
jobs:
- build:
-
- runs-on: ubuntu-latest
- permissions:
+ publish:
+ runs-on: ubuntu-latest
+ permissions:
contents: read
- packages: write
-
+ packages: write
steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 16
- uses: actions/setup-java@v2
- with:
- java-version: '16'
- distribution: 'adopt'
- server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
- settings-path: ${{ github.workspace }} # location for the settings.xml file
-
- - name: Build with Maven
- run: mvn -B package --file pom.xml
-
- - name: Publish to GitHub Packages Apache Maven
- run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
- env:
- GITHUB_TOKEN: ${{ github.token }}
+ - uses: actions/checkout@v2
+ - uses: actions/setup-java@v2
+ with:
+ java-version: '16'
+ distribution: 'adopt'
+ - name: Publish package
+ run: mvn --batch-mode deploy
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..9e26dfe
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index b0a8080..ee63886 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
Me.EtienneDx
RealEstate
- 1.2.2
+ 1.3.0
RealEstate
A spigot plugin for selling, renting and leasing GriefPrevention claims
@@ -57,6 +57,13 @@
+
+
+ github
+ GitHub Packages
+ https://maven.pkg.github.com/EtienneDx/RealEstate
+
+
spigot-repo