From ca4ba6e6ab2cc770405875756756ba1a7df1ffd9 Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 13 Feb 2023 01:16:10 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Synced=20local=20'.github/workfl?= =?UTF-8?q?ows/'=20with=20remote=20'workflows/proto/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 29 ------------------------ .github/workflows/deploy.yml | 31 -------------------------- .github/workflows/erlang-pr.yml | 17 ++++++++++++++ .github/workflows/frontend-pr.yml | 2 +- .github/workflows/frontend-publish.yml | 2 +- .github/workflows/java-deploy.yml | 17 ++++++++++++++ .github/workflows/java-pr.yml | 10 +++++++++ 7 files changed, 46 insertions(+), 62 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/deploy.yml create mode 100644 .github/workflows/erlang-pr.yml create mode 100644 .github/workflows/java-deploy.yml create mode 100644 .github/workflows/java-pr.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 1d20556..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@v2 - 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 \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index b4e16f1..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@v2 - 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.9 - 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 new file mode 100644 index 0000000..ba70b5c --- /dev/null +++ b/.github/workflows/erlang-pr.yml @@ -0,0 +1,17 @@ +name: Erlang build + +on: + pull_request: + branches: + - "*" + +jobs: + build: + uses: valitydev/erlang-workflows/.github/workflows/erlang-simple-build.yml@v1 + with: + otp-version: 24 + rebar-version: 3 + use-thrift: true + thrift-version: 0.14.2.3 + run-eunit: false + run-common-test: false diff --git a/.github/workflows/frontend-pr.yml b/.github/workflows/frontend-pr.yml index ab070ea..89c03b2 100644 --- a/.github/workflows/frontend-pr.yml +++ b/.github/workflows/frontend-pr.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: valitydev/action-frontend/setup@v0.1 - - uses: valitydev/action-setup-thrift@v1.0.0 + - uses: valitydev/action-setup-thrift@v1.0.1 - run: npm i # protocols don't always update the package-lock.json, so installing from package.json - name: Codegen run: npm run codegen diff --git a/.github/workflows/frontend-publish.yml b/.github/workflows/frontend-publish.yml index b3871c5..9294ba7 100644 --- a/.github/workflows/frontend-publish.yml +++ b/.github/workflows/frontend-publish.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: valitydev/action-frontend/setup@v0.1 - - uses: valitydev/action-setup-thrift@v1.0.0 + - uses: valitydev/action-setup-thrift@v1.0.1 - run: npm i # protocols don't always update the package-lock.json, so installing from package.json - name: Build run: npm run codegen diff --git a/.github/workflows/java-deploy.yml b/.github/workflows/java-deploy.yml new file mode 100644 index 0000000..08de7a1 --- /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@v2 + 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..d833c8e --- /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@v2