|
|
@ -5,7 +5,8 @@ on: |
|
|
|
# opened: pull request is created |
|
|
|
# opened: pull request is created |
|
|
|
# reopened: closed pull request is reopened |
|
|
|
# reopened: closed pull request is reopened |
|
|
|
# synchronize: commit(s) pushed to the pull request |
|
|
|
# synchronize: commit(s) pushed to the pull request |
|
|
|
types: [opened, reopened, synchronize] |
|
|
|
# ready_for_review: non PR release |
|
|
|
|
|
|
|
types: [opened, reopened, synchronize, ready_for_review] |
|
|
|
paths: |
|
|
|
paths: |
|
|
|
- "packages/nocodb-sdk/**" |
|
|
|
- "packages/nocodb-sdk/**" |
|
|
|
- "packages/nc-gui/**" |
|
|
|
- "packages/nc-gui/**" |
|
|
@ -13,8 +14,7 @@ on: |
|
|
|
- "packages/nocodb/**" |
|
|
|
- "packages/nocodb/**" |
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
# Validate Branch |
|
|
|
# Validate Branch |
|
|
|
validate-branch: |
|
|
|
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }} |
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }} |
|
|
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- run: | |
|
|
|
- run: | |
|
|
@ -25,7 +25,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
# enrich tag for pr release |
|
|
|
# enrich tag for pr release |
|
|
|
set-tag: |
|
|
|
set-tag: |
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }} |
|
|
|
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }} |
|
|
|
runs-on: 'ubuntu-latest' |
|
|
|
runs-on: 'ubuntu-latest' |
|
|
|
needs: [validate-branch] |
|
|
|
needs: [validate-branch] |
|
|
|
steps: |
|
|
|
steps: |
|
|
@ -53,7 +53,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
# Build, install, publish frontend and backend to npm |
|
|
|
# Build, install, publish frontend and backend to npm |
|
|
|
release-npm: |
|
|
|
release-npm: |
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }} |
|
|
|
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }} |
|
|
|
needs: [set-tag] |
|
|
|
needs: [set-tag] |
|
|
|
uses: ./.github/workflows/release-npm.yml |
|
|
|
uses: ./.github/workflows/release-npm.yml |
|
|
|
with: |
|
|
|
with: |
|
|
@ -64,7 +64,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
# Build docker image and push to docker hub |
|
|
|
# Build docker image and push to docker hub |
|
|
|
release-docker: |
|
|
|
release-docker: |
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }} |
|
|
|
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }} |
|
|
|
needs: [release-npm, set-tag] |
|
|
|
needs: [release-npm, set-tag] |
|
|
|
uses: ./.github/workflows/release-docker.yml |
|
|
|
uses: ./.github/workflows/release-docker.yml |
|
|
|
with: |
|
|
|
with: |
|
|
@ -84,7 +84,7 @@ jobs: |
|
|
|
# echo docker run -d -p 8888:8080 nocodb/nocodb-timely:${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }} |
|
|
|
# echo docker run -d -p 8888:8080 nocodb/nocodb-timely:${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }} |
|
|
|
|
|
|
|
|
|
|
|
leave-comment: |
|
|
|
leave-comment: |
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }} |
|
|
|
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }} |
|
|
|
runs-on: 'ubuntu-latest' |
|
|
|
runs-on: 'ubuntu-latest' |
|
|
|
needs: [release-docker, set-tag] |
|
|
|
needs: [release-docker, set-tag] |
|
|
|
steps: |
|
|
|
steps: |
|
|
|