This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to publishing on GitHub Actions (#27)
* Switch to publishing on GitHub Actions * lol this is maven not gradle * add maven repo to pom * Fix indentation of steps in Java CI workflow
- Loading branch information
Showing
4 changed files
with
68 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac | ||
|
||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 | ||
with: | ||
java-version: 8 | ||
distribution: temurin | ||
|
||
- uses: s4u/[email protected] | ||
with: | ||
servers: '[{"id": "opencollab-release-repo", "username": "${env.MAVEN_USERNAME}", "password": "${env.MAVEN_PASSWORD}"},{"id": "opencollab-snapshot-repo", "username": "${env.MAVEN_USERNAME}", "password": "${env.MAVEN_PASSWORD}"}]' | ||
|
||
- name: Deploy with Maven | ||
run: mvn deploy -B -P deploy | ||
env: | ||
MAVEN_USERNAME: ${{ vars.DEPLOY_USER }} | ||
MAVEN_PASSWORD: ${{ secrets.DEPLOY_PASS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ | |
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<jdk.version>1.8</jdk.version> | ||
<argLine></argLine> | ||
</properties> | ||
|
||
<licenses> | ||
|
@@ -38,6 +37,13 @@ | |
<name>Steveice10</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
<developer> | ||
<id>GeyserMC</id> | ||
<name>GeyserMC</name> | ||
<url>https://geysermc.org/</url> | ||
<organization>GeyserMC</organization> | ||
<organizationUrl>https://github.com/GeyserMC</organizationUrl> | ||
</developer> | ||
</developers> | ||
|
||
<issueManagement> | ||
|
@@ -126,4 +132,23 @@ | |
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<profiles> | ||
<profile> | ||
<id>deploy</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<distributionManagement> | ||
<repository> | ||
<id>opencollab-release-repo</id> | ||
<url>https://repo.opencollab.dev/maven-releases/</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>opencollab-snapshot-repo</id> | ||
<url>https://repo.opencollab.dev/maven-snapshots/</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
</profile> | ||
</profiles> | ||
</project> |