From c802d09079fc1f38ab546ad3f50db99922f35d09 Mon Sep 17 00:00:00 2001 From: Zach Date: Sat, 18 May 2024 18:02:30 -0500 Subject: [PATCH 1/7] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b769b70..6793a70 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: '${{ env.PROJECT_VERSION }}-SNAPSHOT' - release_name: SimpleTags + release_name: SimpleStaffChat draft: false prerelease: true From 5822ce773701771f7fa265875737c17cae9c710e Mon Sep 17 00:00:00 2001 From: Zach Date: Mon, 20 May 2024 15:18:23 -0500 Subject: [PATCH 2/7] Update and rename build.yml to spigot.yml --- .github/workflows/{build.yml => spigot.yml} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{build.yml => spigot.yml} (83%) diff --git a/.github/workflows/build.yml b/.github/workflows/spigot.yml similarity index 83% rename from .github/workflows/build.yml rename to .github/workflows/spigot.yml index 6793a70..047e929 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/spigot.yml @@ -33,7 +33,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: '${{ env.PROJECT_VERSION }}-SNAPSHOT' + tag_name: '${{ env.PROJECT_VERSION }}' release_name: SimpleStaffChat draft: false prerelease: true @@ -45,6 +45,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: './target/SimpleStaffChat-${{ env.PROJECT_VERSION }}.jar' - asset_name: 'SimpleStaffChat-${{ env.PROJECT_VERSION }}.jar' + asset_path: './SimpleStaffChat-Spigot/target/SimpleStaffChat-Spigot-${{ env.PROJECT_VERSION }}.jar' + asset_name: 'SimpleStaffChat-Spigot-${{ env.PROJECT_VERSION }}.jar' asset_content_type: 'application/java-archive' From 2f915f444f856301274ccff59c28b6c507648579 Mon Sep 17 00:00:00 2001 From: Zach Date: Mon, 20 May 2024 15:19:19 -0500 Subject: [PATCH 3/7] Update spigot.yml --- .github/workflows/spigot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spigot.yml b/.github/workflows/spigot.yml index 047e929..71e434b 100644 --- a/.github/workflows/spigot.yml +++ b/.github/workflows/spigot.yml @@ -33,7 +33,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: '${{ env.PROJECT_VERSION }}' + tag_name: 'Spigot-${{ env.PROJECT_VERSION }}' release_name: SimpleStaffChat draft: false prerelease: true From 405bc33c4cf7eea27d2fbe0ffbf99c91dcd53833 Mon Sep 17 00:00:00 2001 From: Zach Date: Mon, 20 May 2024 15:21:00 -0500 Subject: [PATCH 4/7] Create bungee.yml --- .github/workflows/bungee.yml | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/bungee.yml diff --git a/.github/workflows/bungee.yml b/.github/workflows/bungee.yml new file mode 100644 index 0000000..6a3751c --- /dev/null +++ b/.github/workflows/bungee.yml @@ -0,0 +1,50 @@ +name: Build + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Prepare Project + uses: actions/checkout@v3 + with: + ref: 'main' + + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + + - name: Build with Maven + run: | + mvn -B install --file ./SimpleStaffChat-Bungee/pom.xml + echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: 'Bungee-${{ env.PROJECT_VERSION }}' + release_name: SimpleStaffChat-Bungee ${{ env.PROJECT_VERSION }} + draft: false + prerelease: true + + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: './SimpleStaffChat-Bunge/target/SimpleStaffChat-Bungee-${{ env.PROJECT_VERSION }}.jar' + asset_name: 'SimpleStaffChat-Bungee-${{ env.PROJECT_VERSION }}.jar' + asset_content_type: 'application/java-archive' From 4d179ac2fbb682829092af719a1814894856cf5d Mon Sep 17 00:00:00 2001 From: Zach Date: Mon, 20 May 2024 15:21:51 -0500 Subject: [PATCH 5/7] Update spigot.yml --- .github/workflows/spigot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spigot.yml b/.github/workflows/spigot.yml index 71e434b..e1caf8d 100644 --- a/.github/workflows/spigot.yml +++ b/.github/workflows/spigot.yml @@ -24,7 +24,7 @@ jobs: - name: Build with Maven run: | - mvn -B install --file pom.xml + mvn -B install --file ./SimpleStaffChat-Spigot/pom.xml echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV - name: Create Release @@ -34,7 +34,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: 'Spigot-${{ env.PROJECT_VERSION }}' - release_name: SimpleStaffChat + release_name: SimpleStaffChat-Spigot ${{ env.PROJECT_VERSION }} draft: false prerelease: true From 9696f19520f164e4730832af33acb13e18bf4a62 Mon Sep 17 00:00:00 2001 From: Zach Date: Mon, 20 May 2024 15:22:02 -0500 Subject: [PATCH 6/7] Update bungee.yml --- .github/workflows/bungee.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bungee.yml b/.github/workflows/bungee.yml index 6a3751c..39040bd 100644 --- a/.github/workflows/bungee.yml +++ b/.github/workflows/bungee.yml @@ -45,6 +45,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: './SimpleStaffChat-Bunge/target/SimpleStaffChat-Bungee-${{ env.PROJECT_VERSION }}.jar' + asset_path: './SimpleStaffChat-Bungee/target/SimpleStaffChat-Bungee-${{ env.PROJECT_VERSION }}.jar' asset_name: 'SimpleStaffChat-Bungee-${{ env.PROJECT_VERSION }}.jar' asset_content_type: 'application/java-archive' From 2ca455c2da914be64d10d3e0dbdd845ad705c700 Mon Sep 17 00:00:00 2001 From: Zach Date: Mon, 20 May 2024 15:24:14 -0500 Subject: [PATCH 7/7] Create velocity.yml --- .github/workflows/velocity.yml | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/velocity.yml diff --git a/.github/workflows/velocity.yml b/.github/workflows/velocity.yml new file mode 100644 index 0000000..ffb7a53 --- /dev/null +++ b/.github/workflows/velocity.yml @@ -0,0 +1,50 @@ +name: Build + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Prepare Project + uses: actions/checkout@v3 + with: + ref: 'main' + + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + + - name: Build with Maven + run: | + mvn -B install --file ./SimpleStaffChat-Velocity/pom.xml + echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: 'Velocity-${{ env.PROJECT_VERSION }}' + release_name: SimpleStaffChat-Velocity ${{ env.PROJECT_VERSION }} + draft: false + prerelease: true + + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: './SimpleStaffChat-Velocity/target/SimpleStaffChat-Velocity-${{ env.PROJECT_VERSION }}.jar' + asset_name: 'SimpleStaffChat-Velocity-${{ env.PROJECT_VERSION }}.jar' + asset_content_type: 'application/java-archive'