From e7d879185b059a6bf03d19c2bca67e8516fe5680 Mon Sep 17 00:00:00 2001 From: hffariel Date: Fri, 17 Sep 2021 19:08:21 +0800 Subject: [PATCH] add auto-release workflow --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..27435856 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Set up Maven Central Repository + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - run: | + git checkout main + mvn -U -pl starrockswriter -am clean package assembly:assembly -Dmaven.test.skip=true + cd target/datax/datax/plugin/writer/ + tar -czvf starrockswriter.tar.gz starrockswriter + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + target/datax/datax/plugin/writer/starrockswriter.tar.gz