forked from JnCrMx/discord-game-sdk4j
-
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.
chore: Refactor and rebrand to Wynntils, add CI
- Loading branch information
1 parent
2254e80
commit 6043af3
Showing
92 changed files
with
1,474 additions
and
2,290 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,33 @@ | ||
# 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 | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
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 -DskipTests -Dmaven.antrun.skip=true package --file pom.xml | ||
- name: Publish to GitHub Packages Apache Maven | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
mkdir -p ~/.m2 | ||
echo "<settings><servers><server><id>github</id><username>OWNER</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > ~/.m2/settings.xml | ||
mvn deploy -B -DskipTests -Dmaven.antrun.skip=true |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cp target/native/linux/amd64/libdiscord_game_sdk_jni.so src/main/resources/native/linux/amd64/libdiscord_game_sdk_jni.so | ||
echo "Copied linux amd64" | ||
cp target/native/macos/aarch64/libdiscord_game_sdk_jni.dylib src/main/resources/native/macos/aarch64/libdiscord_game_sdk_jni.dylib | ||
echo "Copied macos aarch64" | ||
cp target/native/macos/amd64/libdiscord_game_sdk_jni.dylib src/main/resources/native/macos/amd64/libdiscord_game_sdk_jni.dylib | ||
echo "Copied macos amd64" | ||
cp target/native/windows/amd64/discord_game_sdk_jni.dll src/main/resources/native/windows/amd64/discord_game_sdk_jni.dll | ||
echo "Copied windows amd64" | ||
cp target/native/windows/x86/discord_game_sdk_jni.dll src/main/resources/native/windows/x86/discord_game_sdk_jni.dll | ||
echo "Copied windows x86" | ||
read -t 5 -p "Press enter to continue..." |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.