|
|
@ -25,6 +25,9 @@ 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 |
|
|
@ -42,17 +45,19 @@ jobs: |
|
|
|
TARGET_TAG=$(echo ${PREV_TAG} | awk -F. -v OFS=. '{$NF += 1 ; print}') |
|
|
|
TARGET_TAG=$(echo ${PREV_TAG} | awk -F. -v OFS=. '{$NF += 1 ; print}') |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
echo target version: ${TARGET_TAG} |
|
|
|
|
|
|
|
echo previous version: ${PREV_TAG} |
|
|
|
|
|
|
|
echo "TARGET_TAG=${TARGET_TAG}" >> $GITHUB_OUTPUT |
|
|
|
echo "TARGET_TAG=${TARGET_TAG}" >> $GITHUB_OUTPUT |
|
|
|
echo "PREV_TAG=${PREV_TAG}" >> $GITHUB_OUTPUT |
|
|
|
echo "PREV_TAG=${PREV_TAG}" >> $GITHUB_OUTPUT |
|
|
|
|
|
|
|
- name: Verify |
|
|
|
|
|
|
|
run : | |
|
|
|
|
|
|
|
echo TARGET_TAG: ${{ steps.process-input.outputs.target_tag }} |
|
|
|
|
|
|
|
echo PREV_TAG: ${{ steps.process-input.outputs.prev_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: ${{ env.TARGET_TAG }} |
|
|
|
tag: ${{ needs.process-input.outputs.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 |
|
|
@ -60,7 +65,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: ${{ env.TARGET_TAG }} |
|
|
|
tag: ${{ needs.process-input.outputs.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 }}" |
|
|
@ -70,8 +75,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: ${{ env.TARGET_TAG }} |
|
|
|
tag: ${{ needs.process-input.outputs.target_tag }} |
|
|
|
prev_tag: ${{ env.PREV_TAG }} |
|
|
|
prev_tag: ${{ needs.process-input.outputs.prev_tag }} |
|
|
|
tagHeadSHA: 'N' |
|
|
|
tagHeadSHA: 'N' |
|
|
|
secrets: |
|
|
|
secrets: |
|
|
|
NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" |
|
|
|
NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" |
|
|
@ -82,7 +87,7 @@ jobs: |
|
|
|
uses: ./.github/workflows/release-docker.yml |
|
|
|
uses: ./.github/workflows/release-docker.yml |
|
|
|
with: |
|
|
|
with: |
|
|
|
currentVersion: 'N/A' |
|
|
|
currentVersion: 'N/A' |
|
|
|
tag: ${{ env.TARGET_TAG }} |
|
|
|
tag: ${{ needs.process-input.outputs.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 }}" |
|
|
@ -93,7 +98,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: ${{ env.TARGET_TAG }} |
|
|
|
tag: ${{ needs.process-input.outputs.target_tag }} |
|
|
|
secrets: |
|
|
|
secrets: |
|
|
|
NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" |
|
|
|
NC_GITHUB_TOKEN: "${{ secrets.NC_GITHUB_TOKEN }}" |
|
|
|
|
|
|
|
|
|
|
@ -103,7 +108,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: ${{ env.TARGET_TAG }} |
|
|
|
version: ${{ needs.process-input.outputs.target_tag }} |
|
|
|
|
|
|
|
|
|
|
|
# Publish Docs |
|
|
|
# Publish Docs |
|
|
|
publish-docs: |
|
|
|
publish-docs: |
|
|
|