diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..c91bbdd91 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,34 @@ +name: release + +on: + push: + tags: + - "arthas-all-*" + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + java: [8] + steps: + - uses: actions/checkout@v2 + - name: Setup java + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Build with Maven + run: mvn clean package -P full + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + packaging/target/*.zip + packaging/target/*.deb + packaging/target/*.rpm + tunnel-server/target/*fatjar.jar + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +