add auto-release workflow

This commit is contained in:
hffariel 2021-09-17 19:08:21 +08:00
parent 8fd01d22ca
commit e7d879185b

30
.github/workflows/release.yml vendored Normal file
View File

@ -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