-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd686f2
commit 2287800
Showing
13 changed files
with
84 additions
and
23 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 |
---|---|---|
|
@@ -4,33 +4,78 @@ on: | |
push: | ||
branches: | ||
- main | ||
- test | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
name: Upload Release Asset | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Build and Test | ||
uses: qcastel/github-actions-maven-cmd@master | ||
# OLD CODE: | ||
#- name: Build and Test | ||
# uses: qcastel/github-actions-maven-cmd@master | ||
# env: | ||
# api_key: ${{ secrets.API_KEY }} | ||
# with: | ||
# maven-args: "clean package" | ||
|
||
#- name: Release | ||
# uses: qcastel/github-actions-maven-release@master | ||
# env: | ||
# JAVA_HOME: /usr/lib/jvm/java-1.8-openjdk/ | ||
# with: | ||
# git-release-bot-name: "bot-idhub" | ||
# git-release-bot-email: "[email protected]" | ||
# release-branch-name: main | ||
# version-patch: true | ||
# maven-development-version-number: ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextPatchVersion}-SNAPSHOT | ||
# maven-release-version-number: ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.patchVersion} | ||
# maven-args: "-Dmaven.javadoc.skip=true -DskipTests -DskipITs -Dmaven.deploy.skip=true -Dmaven.site.skip=true" | ||
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
|
||
# NEW CODE: | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: maven | ||
|
||
- name: Build with Maven | ||
run: mvn clean compile assembly:single package | ||
env: | ||
api_key: ${{ secrets.API_KEY }} | ||
with: | ||
maven-args: "clean package" | ||
|
||
- name: Release | ||
uses: qcastel/github-actions-maven-release@master | ||
- name: Get Project Version | ||
run: echo "PROJECT_VERSION=`mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | sed -n -e '/^\[.*\]/ !{ /^[0-9]/ { p; q } }'`" >> $GITHUB_ENV | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: joutvhu/create-release@v1 | ||
with: | ||
tag_name: v${{env.PROJECT_VERSION}} | ||
name: Release ${{env.PROJECT_VERSION}} | ||
draft: true | ||
prerelease: false | ||
remove_assets: true | ||
env: | ||
JAVA_HOME: /usr/lib/jvm/java-11-openjdk/ | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
git-release-bot-name: "bot-idhub" | ||
git-release-bot-email: "[email protected]" | ||
release-branch-name: main | ||
version-patch: true | ||
maven-development-version-number: ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextPatchVersion}-SNAPSHOT | ||
maven-release-version-number: ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.patchVersion} | ||
|
||
maven-args: "-Dmaven.javadoc.skip=true -DskipTests -DskipITs -Dmaven.deploy.skip=true -Dmaven.site.skip=true" | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ./target/modupdater-${{env.PROJECT_VERSION}}-jar-with-dependencies.jar | ||
asset_name: modupdater-${{env.PROJECT_VERSION}}-jar-with-dependencies.jar | ||
asset_content_type: application/java-archive | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Binary file not shown.
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
Binary file not shown.
Binary file modified
BIN
+64 Bytes
(100%)
target/classes/com/miniontoby/ModUpdater/CheckModPanel$1.class
Binary file not shown.
Binary file modified
BIN
+712 Bytes
(120%)
target/classes/com/miniontoby/ModUpdater/CheckModPanel.class
Binary file not shown.
Binary file modified
BIN
+112 Bytes
(110%)
target/classes/com/miniontoby/ModUpdater/InstallModPanel$1.class
Binary file not shown.
Binary file modified
BIN
+839 Bytes
(120%)
target/classes/com/miniontoby/ModUpdater/InstallModPanel.class
Binary file not shown.
Binary file modified
BIN
+29 Bytes
(100%)
target/classes/com/miniontoby/ModUpdater/UpdateAllModsPanel$1.class
Binary file not shown.
Binary file modified
BIN
+191 Bytes
(110%)
target/classes/com/miniontoby/ModUpdater/UpdateAllModsPanel.class
Binary file not shown.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#Created by Apache Maven 3.8.4 | ||
groupId=com.miniontoby | ||
artifactId=modupdater | ||
version=1.3.4-SNAPSHOT | ||
version=1.3.3-SNAPSHOT |
Binary file modified
BIN
+0 Bytes
(100%)
target/test-classes/com/miniontoby/ModUpdater/AppTest.class
Binary file not shown.