From eebcfc0c6e32d964eef213d7bf51fd6b293baf8c Mon Sep 17 00:00:00 2001 From: xxAROX Date: Fri, 13 Oct 2023 13:08:26 +0200 Subject: [PATCH] updated the action workflows --- .github/workflows/build.yml | 15 +++++++++++++++ .github/workflows/dev-build.yml | 15 +++++++++++++++ .../xxAROX/PresenceMan/Application/AppInfo.java | 2 +- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c4f4ce6..1bb8288 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,6 +48,21 @@ jobs: title: "Release v${{ steps.metadata.outputs.VERSION }}" files: "target/Presence-Man-App-v${{ steps.metadata.outputs.VERSION }}.jar" + - name: "Create version-app.txt" + run: "echo \"${{ steps.metadata.outputs.VERSION }}\" >> version-app.txt" + + - name: "Pushes latest version-app.txt file" + uses: dmnemec/copy_file_to_another_repo_action@main + env: + API_TOKEN_GITHUB: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + with: + source_file: 'version-app.txt' + destination_repo: 'Presence-Man/releases' + destination_folder: '' + user_email: 'arox.email.0@gmail.com' + user_name: 'xxAROX' + commit_message: 'Updated version' + - name: Release to public uses: softprops/action-gh-release@v1 with: diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 0880b62..e83021c 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -48,6 +48,21 @@ jobs: title: "Development Release v${{ steps.metadata.outputs.VERSION }}" files: "target/Presence-Man-App-v${{ steps.metadata.outputs.VERSION }}-dev.jar" + - name: "Create dev-version-app.txt" + run: "echo \"${{ steps.metadata.outputs.VERSION }}\" >> dev-version-app.txt" + + - name: "Pushes latest dev-version-app.txt file" + uses: dmnemec/copy_file_to_another_repo_action@main + env: + API_TOKEN_GITHUB: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + with: + source_file: 'dev-version-app.txt' + destination_repo: 'Presence-Man/releases' + destination_folder: '' + user_email: 'arox.email.0@gmail.com' + user_name: 'xxAROX' + commit_message: 'Updated dev-version' + - name: Release to public uses: softprops/action-gh-release@v1 with: diff --git a/src/main/java/xxAROX/PresenceMan/Application/AppInfo.java b/src/main/java/xxAROX/PresenceMan/Application/AppInfo.java index d7de906..634b771 100644 --- a/src/main/java/xxAROX/PresenceMan/Application/AppInfo.java +++ b/src/main/java/xxAROX/PresenceMan/Application/AppInfo.java @@ -4,7 +4,7 @@ public final class AppInfo { public final static String name = "Presence-Man"; - public final static int[] version = new int[]{ 1,1,1s }; + public final static int[] version = new int[]{ 1,1,1 }; public static String icon = "icon.png"; public static long discord_application_id = 1133823892486623344L;