Skip to content

Commit

Permalink
updated the action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xxAROX committed Oct 13, 2023
1 parent 671a4ef commit eebcfc0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]'
user_name: 'xxAROX'
commit_message: 'Updated version'

- name: Release to public
uses: softprops/action-gh-release@v1
with:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]'
user_name: 'xxAROX'
commit_message: 'Updated dev-version'

- name: Release to public
uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/xxAROX/PresenceMan/Application/AppInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit eebcfc0

Please sign in to comment.