From 1d36583fdc7e3c8cc75110677fb814a9faa822ed Mon Sep 17 00:00:00 2001 From: "tao.yang" Date: Wed, 30 Aug 2023 15:35:09 +0800 Subject: [PATCH] Use mike to construct the version, no artifact exists Signed-off-by: tao.yang --- .github/workflows/auto-version-release.yaml | 1 - .github/workflows/call-update-githubpages.yaml | 18 +----------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/.github/workflows/auto-version-release.yaml b/.github/workflows/auto-version-release.yaml index b0ac939ef9..400d3ad5c7 100644 --- a/.github/workflows/auto-version-release.yaml +++ b/.github/workflows/auto-version-release.yaml @@ -117,7 +117,6 @@ jobs: needs: [release-doc, release-chart] uses: ./.github/workflows/call-update-githubpages.yaml with: - site_artifact_name: ${{ needs.release-doc.outputs.artifact }} chart_artifact_name: ${{ needs.release-chart.outputs.artifact }} secrets: inherit diff --git a/.github/workflows/call-update-githubpages.yaml b/.github/workflows/call-update-githubpages.yaml index 919aaa3b09..1f3f87b8ed 100644 --- a/.github/workflows/call-update-githubpages.yaml +++ b/.github/workflows/call-update-githubpages.yaml @@ -40,16 +40,9 @@ jobs: run: | rm -rf _oldCharts cp -rf ${{ env.DEST_DIRECTORY }}/charts _oldCharts - rm -rf ${{ env.DEST_DIRECTORY }} - mkdir ${{ env.DEST_DIRECTORY }} + rm -rf ${{ env.DEST_DIRECTORY }}/charts mkdir ${{ env.DEST_DIRECTORY }}/charts - - name: Download Website Artifact - uses: actions/download-artifact@v3 - with: - name: ${{ inputs.site_artifact_name }} - path: ${{ env.DEST_DIRECTORY }} - - name: Download Chart Artifact uses: actions/download-artifact@v3 with: @@ -58,16 +51,7 @@ jobs: - name: Untar Artifact run: | - # untar website html - cd ${{ env.DEST_DIRECTORY }} - ALL_TAR_FILE=`ls *.tar.gz` - for ITEM in $ALL_TAR_FILE ; do - echo "untar $ITEM " - tar -xzvf $ITEM - rm -f $ITEM - done # restore old charts - cd .. # do not overwrite new chart tar cp -n _oldCharts/* ${{ env.DEST_DIRECTORY }}/charts rm -rf _oldCharts