diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0459197..7c437b3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,15 +1,14 @@ -name: Build and Upload +name: Test Build on: - push: + pull_request: branches: - master jobs: build: - name: Build and Upload + name: Build runs-on: ubuntu-latest - if: contains(github.event.head_commit.message, '[ci skip]') == false steps: - uses: actions/checkout@v4.1.7 @@ -22,10 +21,3 @@ jobs: - name: Build with Maven run: mvn package - - - name: Upload to Builds - uses: WalshyDev/blob-builds/gh-action@main - with: - project: SlimeTinker - apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }} - releaseNotes: ${{ github.event.head_commit.message }} diff --git a/.github/workflows/maven.yml b/.github/workflows/upload.yml similarity index 57% rename from .github/workflows/maven.yml rename to .github/workflows/upload.yml index 4474537a..e0459197 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/upload.yml @@ -1,16 +1,13 @@ -name: Build +name: Build and Upload on: push: branches: - master - pull_request: - branches: - - master jobs: build: - name: Build + name: Build and Upload runs-on: ubuntu-latest if: contains(github.event.head_commit.message, '[ci skip]') == false @@ -25,3 +22,10 @@ jobs: - name: Build with Maven run: mvn package + + - name: Upload to Builds + uses: WalshyDev/blob-builds/gh-action@main + with: + project: SlimeTinker + apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }} + releaseNotes: ${{ github.event.head_commit.message }}