From f17361dfa6bea8a80e8cb1caea1cc22f84abaac0 Mon Sep 17 00:00:00 2001 From: char3210 <45241413+char3210@users.noreply.github.com> Date: Tue, 5 Dec 2023 18:35:34 -0600 Subject: [PATCH] blob builds (todo: autoupdater) --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ pom.xml | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..79c3507 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +name: Publish +on: + push: + branches: + - main + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: Set up JDK 17 + uses: actions/setup-java@v2.5.0 + with: + distribution: 'adopt' + java-version: '17' + java-package: jdk + architecture: x64 + - name: Package with Maven + run: mvn -B package + - name: Upload to Blob Builds + uses: WalshyDev/blob-builds/gh-action@main + with: + project: SlimefunAdvancements + apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }} + file: ./target/sfadvancements.jar + releaseNotes: ${{ github.event.head_commit.message }} diff --git a/pom.xml b/pom.xml index 89e4048..da163c7 100644 --- a/pom.xml +++ b/pom.xml @@ -40,6 +40,9 @@ + clean package + ${project.artifactId} + org.apache.maven.plugins