From 8292eeb11cf4dd8144290bb7dabdbac99589be9a 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 | 26 ---------------------- 2 files changed, 28 insertions(+), 26 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 0000000000..d5a55babc5 --- /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 46f9811de9..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -dist: xenial -language: java -jdk: - - openjdk8 -bundler_args: --retry 1 -# safelist -branches: - only: - - master - - /((\d)|(\.))+((\/)tag)$/ - -# cache: -# directories: -# - '$HOME/.m2/repository' -deploy: - provider: releases - api_key: - secure: BSUg1adCcO1vZJ1Jiyv/atERsQgphVUgj2WL5/cIJvXXBHp1DSNyQHPv8CyDkz7vH1cZbKe6ev+Bz2V/OyE9NMQVXRS5qwrUCw+ScGQHmMfuNkIPtpzGCuyNOUCwpGB28LzlTLmXgGGI/WhOokc3eCh7sJ6OftOkoRmGDD4x+2OyXy3Yd7rtyggzohfksmJ0oNqwA50f0vXXDC/KD51xOY3Ik4txi1sf65ccpJ2mR9nbDUphYbA6mzokX1L8cvuVyhV0N1Dd+SDpHE2eOXoretDQ1vK/i3K0fLoPpGsbagTSl75lgJi5LB4jQIxHAibLT+/St70WpB+7P2JqBq9ocaJnldLGgNmRb4osEnH/8lpurRkvonHY5kWgl3XBcolw/wd0c1fJmftJCyPwjJceSGg/+hG7516dqA2GEavgs8mMEMgxEcPH9Jp7fP9K72Ck7X28nyddBDH5AwI7lUY6PKTwmXBsH0hXupVWK7+d1nfMgK3hK6b2F1wE6TC82rLf7IwQUxIVcfSL/kuzzgJpaF0ccTTBNWHCf/At2hunTK1USPRj8AOteK99ype+6/0xhhiOFdNxWtu95IhFfpJPVeGtAVrh4fln2nA7erWmuD58QBGfoWFNJMhT8zshdg0AQpwAu5qcxgQBOddU8IO44g+eA5rosqH3AM7Yj3HvIXw= - file_glob: true - file: target/*-linux.tar.gz - skip_cleanup: true - on: - repo: actiontech/dble - tags: true - jdk: openjdk8 - draft: true