From 873601ce4d836b7c8b6cb6ddae083bcba0b34aa0 Mon Sep 17 00:00:00 2001 From: yanhuqing666 Date: Wed, 18 Sep 2024 17:02:24 +0800 Subject: [PATCH] mv travis to actions --- .github/workflows/release_attachment.yml | 28 ++++++++++++++++++++++++ .travis.yml | 9 -------- 2 files changed, 28 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/release_attachment.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/release_attachment.yml b/.github/workflows/release_attachment.yml new file mode 100644 index 000000000..d5a55babc --- /dev/null +++ b/.github/workflows/release_attachment.yml @@ -0,0 +1,28 @@ +name: Publish +on: + push: + tags: + - '**' + +jobs: + build: + name: Publish binaries + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '8' + cache: 'maven' + - name: Build + run: mvn -B package --file pom.xml + - name: Upload binaries to release + uses: svenstaro/upload-release-action@2.9.0 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/*-linux.tar.gz + tag: ${{ github.ref }} + overwrite: true + file_glob: true + draft: true \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4c077d31b..000000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -dist: trusty -language: java -jdk: - - openjdk8 - - oraclejdk8 - -cache: - directories: - - '$HOME/.m2/repository'