diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d90e01c6..8376c8f4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -4,12 +4,12 @@ on: pull_request: branches: - main - - 2.5 + - 2.4 types: [opened, synchronize] push: branches: - main - - 2.5 + - 2.4 jobs: publish: runs-on: ubuntu-latest diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml deleted file mode 100644 index 0b2a5ff5..00000000 --- a/.github/workflows/pre-release.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Node sdk 2.x pre release - -on: - release: - types: [prereleased] - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - - - name: Install dependencies - run: yarn - - - name: update submodules - run: | - git submodule init - yarn pre - - - name: Build app - run: | - yarn build - - - uses: JS-DevTools/npm-publish@v1 - with: - token: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/release.yml similarity index 95% rename from .github/workflows/ci.yml rename to .github/workflows/release.yml index d2344f95..14a70558 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,6 @@ name: Node sdk 2.x release on: release: types: [released] - branches: - - main jobs: publish: diff --git a/.github/workflows/updateDoc.yml b/.github/workflows/updateDoc.yml deleted file mode 100644 index a4148a79..00000000 --- a/.github/workflows/updateDoc.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: dispatch new tag event -on: - release: - types: [released] - -jobs: - dispatch: - name: Dispatch event - runs-on: ubuntu-latest - steps: - - name: Tag name - id: tag_name - run: | - echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/} - - name: Dispatch tag name - id: dispatch_tag_name - run: | - curl \ - -X POST \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/milvus-io/web-content/actions/workflows/updateApiReference.yml/dispatches \ - -d '{"ref":"master", "inputs": { "tagName": "${{ steps.tag_name.outputs.SOURCE_TAG }}", "repoName": "${{ github.event.repository.name }}" } }' \ - -u ".:${{secrets.DOC_TOKEN}}"