|
|
@ -25,9 +25,6 @@ jobs: |
|
|
|
process-input: |
|
|
|
process-input: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
needs: validate-branch |
|
|
|
needs: validate-branch |
|
|
|
outputs: |
|
|
|
|
|
|
|
target_tag: ${{ steps.process-input.outputs.target_tag }} |
|
|
|
|
|
|
|
prev_tag: ${{ steps.process-input.outputs.prev_tag }} |
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- id: process-input |
|
|
|
- id: process-input |
|
|
|
name: process-input |
|
|
|
name: process-input |
|
|
@ -47,18 +44,15 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
echo target version: ${TARGET_TAG} |
|
|
|
echo target version: ${TARGET_TAG} |
|
|
|
echo previous version: ${PREV_TAG} |
|
|
|
echo previous version: ${PREV_TAG} |
|
|
|
echo "::set-output name=target_tag::${TARGET_TAG}" |
|
|
|
echo "TARGET_TAG=${TARGET_TAG}" >> $GITHUB_OUTPUT |
|
|
|
echo "::set-output name=prev_tag::${PREV_TAG}" |
|
|
|
echo "PREV_TAG=${PREV_TAG}" >> $GITHUB_OUTPUT |
|
|
|
- name: Verify |
|
|
|
|
|
|
|
run : | |
|
|
|
|
|
|
|
echo ${{ steps.process-input.outputs.target_tag }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Merge develop to master |
|
|
|
# Merge develop to master |
|
|
|
pr-to-master: |
|
|
|
pr-to-master: |
|
|
|
needs: process-input |
|
|
|
needs: process-input |
|
|
|
uses: ./.github/workflows/pr-to-master.yml |
|
|
|
uses: ./.github/workflows/pr-to-master.yml |
|
|
|
with: |
|
|
|
with: |
|
|
|
tag: ${{ needs.process-input.outputs.target_tag }} |
|
|
|
tag: ${{ env.TARGET_TAG }} |
|
|
|
targetEnv: ${{ github.event.inputs.targetEnv || 'PROD' }} |
|
|
|
targetEnv: ${{ github.event.inputs.targetEnv || 'PROD' }} |
|
|
|
|
|
|
|
|
|
|
|
# Build, install, publish frontend and backend to npm |
|
|
|
# Build, install, publish frontend and backend to npm |
|
|
@ -66,7 +60,7 @@ jobs: |
|
|
|
needs: [pr-to-master, process-input] |
|
|
|
needs: [pr-to-master, process-input] |
|
|
|
uses: ./.github/workflows/release-npm.yml |
|
|
|
uses: ./.github/workflows/release-npm.yml |
|
|
|
with: |
|
|
|
with: |
|
|
|
tag: ${{ needs.process-input.outputs.target_tag }} |
|
|
|
tag: ${{ env.TARGET_TAG }} |
|
|
|
targetEnv: ${{ github.event.inputs.targetEnv || 'PROD' }} |
|
|
|
targetEnv: ${{ github.event.inputs.targetEnv || 'PROD' }} |
|
|
|
secrets: |
|
|
|
secrets: |
|
|
|
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}" |
|
|
|
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}" |
|
|
@ -76,8 +70,8 @@ jobs: |
|
|
|
needs: [release-npm, process-input] |
|
|
|
needs: [release-npm, process-input] |
|
|
|
uses: ./.github/workflows/release-draft.yml |
|
|
|
uses: ./.github/workflows/release-draft.yml |
|
|
|
with: |
|
|
|
with: |
|
|
|
tag: ${{ needs.process-input.outputs.target_tag }} |
|
|
|
tag: ${{ env.TARGET_TAG }} |
|
|
|
prev_tag: ${{ needs.process-input.outputs.prev_tag }} |
|
|
|
prev_tag: ${{ env.PREV_TAG }} |
|
|
|
tagHeadSHA: 'N' |
|
|
|
tagHeadSHA: 'N' |
|
|
|
secrets: |
|
|
|
secrets: |
|
|
|
NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" |
|
|
|
NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" |
|
|
@ -88,7 +82,7 @@ jobs: |
|
|
|
uses: ./.github/workflows/release-docker.yml |
|
|
|
uses: ./.github/workflows/release-docker.yml |
|
|
|
with: |
|
|
|
with: |
|
|
|
currentVersion: 'N/A' |
|
|
|
currentVersion: 'N/A' |
|
|
|
tag: ${{ needs.process-input.outputs.target_tag }} |
|
|
|
tag: ${{ env.TARGET_TAG }} |
|
|
|
targetEnv: ${{ github.event.inputs.targetEnv || 'PROD' }} |
|
|
|
targetEnv: ${{ github.event.inputs.targetEnv || 'PROD' }} |
|
|
|
secrets: |
|
|
|
secrets: |
|
|
|
DOCKERHUB_USERNAME: "${{ secrets.DOCKERHUB_USERNAME }}" |
|
|
|
DOCKERHUB_USERNAME: "${{ secrets.DOCKERHUB_USERNAME }}" |
|
|
@ -99,7 +93,7 @@ jobs: |
|
|
|
needs: [release-draft-note, process-input] |
|
|
|
needs: [release-draft-note, process-input] |
|
|
|
uses: ./.github/workflows/release-executables.yml |
|
|
|
uses: ./.github/workflows/release-executables.yml |
|
|
|
with: |
|
|
|
with: |
|
|
|
tag: ${{ needs.process-input.outputs.target_tag }} |
|
|
|
tag: ${{ env.TARGET_TAG }} |
|
|
|
secrets: |
|
|
|
secrets: |
|
|
|
NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" |
|
|
|
NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" |
|
|
|
|
|
|
|
|
|
|
@ -109,7 +103,7 @@ jobs: |
|
|
|
uses: ./.github/workflows/release-close-issue.yml |
|
|
|
uses: ./.github/workflows/release-close-issue.yml |
|
|
|
with: |
|
|
|
with: |
|
|
|
issue_label: '🚀 Status: Ready for Next Release' |
|
|
|
issue_label: '🚀 Status: Ready for Next Release' |
|
|
|
version: ${{ needs.process-input.outputs.target_tag }} |
|
|
|
version: ${{ env.TARGET_TAG }} |
|
|
|
|
|
|
|
|
|
|
|
# Publish Docs |
|
|
|
# Publish Docs |
|
|
|
publish-docs: |
|
|
|
publish-docs: |
|
|
|