From 8e1df48d4b713f7a8c945cbc4dd76e0ecad5c396 Mon Sep 17 00:00:00 2001 From: JamesChenX Date: Mon, 13 Mar 2023 17:27:05 +0800 Subject: [PATCH] Add GA to publish turms plugins on GitHub Releases #1165 --- .github/workflows/publish-turms-plugins.yml | 35 +++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/publish-turms-plugins.yml diff --git a/.github/workflows/publish-turms-plugins.yml b/.github/workflows/publish-turms-plugins.yml new file mode 100644 index 0000000000..224e29f964 --- /dev/null +++ b/.github/workflows/publish-turms-plugins.yml @@ -0,0 +1,35 @@ +name: Publish turms plugins + +on: + workflow_dispatch: + push: + branches: + - master + +jobs: + publish: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 17 + + - name: Build + run: mvn clean package -Dmaven.test.skip=true -am -B -pl turms-plugins/turms-plugin-antispam,turms-plugins/turms-plugin-minio,turms-plugins/turms-plugin-rasa --no-transfer-progress + + - name: Release + uses: softprops/action-gh-release@v1 + with: + # TODO: Use a fixed name until we start a general release + name: v0.10.0-SNAPSHOT + tag_name: v0.10.0-SNAPSHOT + prerelease: true + generate_release_notes: false + fail_on_unmatched_files: true + files: | + turms-plugins/**/target/*.jar \ No newline at end of file