diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 0738b78..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Build Artifact - -on: - pull_request: - branches: - - '*' - -jobs: - build: - runs-on: ubuntu-20.04 - steps: - - name: Install thrift - uses: valitydev/action-setup-thrift@v0.0.1 - - name: Checkout Repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up Maven - uses: actions/setup-java@v2 - with: - java-version: '15' - distribution: 'adopt' - - name: Retrieve commit info - run: | - echo "::set-output name=COMMIT_NUMBER::$(git rev-list HEAD --count)" - echo "::set-output name=SHA_7::${GITHUB_SHA::7}" - id: commit_info - - name: Build package - run: mvn --batch-mode -Dcommit.number=${{ steps.commit_info.outputs.COMMIT_NUMBER }} -Drevision="1.${{ steps.commit_info.outputs.COMMIT_NUMBER }}-${{ steps.commit_info.outputs.SHA_7 }}" clean compile -f pom.xml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index dcda65d..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Deploy Artifact - -on: - push: - branches: - - 'master' - - 'main' - -jobs: - deploy: - runs-on: ubuntu-20.04 - steps: - - name: Install thrift - uses: valitydev/action-setup-thrift@v0.0.1 - - name: Checkout Repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Retrieve commit info - run: | - echo "::set-output name=COMMIT_NUMBER::$(git rev-list HEAD --count)" - echo "::set-output name=SHA_7::${GITHUB_SHA::7}" - id: commit_info - - name: Deploy package - uses: valitydev/action-deploy-jdk-package@v1.0.12 - with: - server-username: ${{ secrets.OSSRH_USERNAME }} - server-password: ${{ secrets.OSSRH_TOKEN }} - deploy-secret-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} - deploy-secret-key-password: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} - maven-args: '-Dcommit.number=${{ steps.commit_info.outputs.COMMIT_NUMBER }} -Drevision="1.${{ steps.commit_info.outputs.COMMIT_NUMBER }}-${{ steps.commit_info.outputs.SHA_7 }}"' diff --git a/.github/workflows/erlang-pr.yml b/.github/workflows/erlang-pr.yml index 92a3246..21b6b9c 100644 --- a/.github/workflows/erlang-pr.yml +++ b/.github/workflows/erlang-pr.yml @@ -1,9 +1,9 @@ name: Erlang on: pull_request: - branches: [ '*' ] + branches: ['*'] push: - branches: [ master ] + branches: [master] jobs: build: @@ -13,9 +13,9 @@ jobs: - uses: actions/checkout@v3 - - uses: valitydev/action-setup-thrift@b457b89c7e1e960ea354f510bce69a725d16c556 + - uses: valitydev/action-setup-thrift@v1 with: - thrift-version: '0.14.2' + thrift-version: '0.14.2.2' - uses: erlef/setup-beam@v1.9 id: beam diff --git a/.github/workflows/java-deploy.yml b/.github/workflows/java-deploy.yml new file mode 100644 index 0000000..2cd8c45 --- /dev/null +++ b/.github/workflows/java-deploy.yml @@ -0,0 +1,17 @@ +name: Java deploy + +on: + push: + branches: + - "master" + - "main" + +jobs: + deploy: + uses: valitydev/java-workflow/.github/workflows/maven-thrift-deploy.yml@v1 + secrets: + server-username: ${{ secrets.OSSRH_USERNAME }} + server-password: ${{ secrets.OSSRH_TOKEN }} + deploy-secret-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} + deploy-secret-key-password: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} + mm-webhook-url: ${{ secrets.MATTERMOST_WEBHOOK_URL }} diff --git a/.github/workflows/java-pr.yml b/.github/workflows/java-pr.yml new file mode 100644 index 0000000..0db65b3 --- /dev/null +++ b/.github/workflows/java-pr.yml @@ -0,0 +1,10 @@ +name: Java build + +on: + pull_request: + branches: + - "*" + +jobs: + build: + uses: valitydev/java-workflow/.github/workflows/maven-thrift-build.yml@v1