diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1b1fe8f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Build and publish release + +on: + push: + tags: + - '*' + +permissions: + contents: write + +jobs: + release: + name: Build and publish RemotePackSync + runs-on: ubuntu-latest + + steps: + - name: Check out source + uses: actions/checkout@v5 + + - name: Set up Java 25 + uses: actions/setup-java@v5 + with: + distribution: temurin + java-version: '25' + cache: maven + + - name: Build plugin + run: mvn --batch-mode --no-transfer-progress clean verify + + - name: Publish GitHub release + uses: softprops/action-gh-release@v2 + with: + generate_release_notes: true + files: target/RemotePackSync.jar + fail_on_unmatched_files: true