Browse Source

chore: integrate with nightly-dev and pr release actions

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2435/head
Pranav C 3 years ago
parent
commit
f8e08605a5
  1. 7
      .github/workflows/release-nightly-dev.yml
  2. 18
      .github/workflows/release-pr.yml

7
.github/workflows/release-nightly-dev.yml

@ -48,6 +48,13 @@ jobs:
secrets:
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
# Build executables and publish to GitHub
release-executables:
needs: [set-tag, release-npm]
uses: ./.github/workflows/release-executables.yml
with:
tag: ${{ needs.set-tag.outputs.nightly_build_tag }}
# Build docker image and push to docker hub
release-docker:
needs: [set-tag, release-npm]

18
.github/workflows/release-pr.yml

@ -77,6 +77,14 @@ jobs:
DOCKERHUB_USERNAME: "${{ secrets.DOCKERHUB_USERNAME }}"
DOCKERHUB_TOKEN: "${{ secrets.DOCKERHUB_TOKEN }}"
# Build executables and publish to GitHub
release-executables:
needs: [set-tag, release-npm]
uses: ./.github/workflows/release-executables.yml
with:
tag: ${{ needs.set-tag.outputs.target_tag }}
current-version: ${{ needs.set-tag.outputs.current_version }}
# leave-comment:
# runs-on: 'ubuntu-latest'
# needs: [release-docker, set-tag]
@ -97,6 +105,16 @@ jobs:
docker run -d -p 8888:8080 nocodb/nocodb-timely:${{ needs.set-tag.outputs.current_version }}-${{ needs.set-tag.outputs.target_tag }}
```
leave-executable-comment:
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }}
runs-on: 'ubuntu-latest'
needs: [release-executables]
steps:
- uses: peter-evans/commit-comment@v2
with:
body: |
The PR changes have been deployed as executables. Pleae visit following link to download executables : https://github.com/nocodb/nocodb-timely/releases/tag/${{ needs.set-tag.outputs.target_tag }}
# if-merged:
# if: github.event.pull_request.merged == true
# runs-on: ubuntu-latest

Loading…
Cancel
Save