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