Skip to content

Commit

Permalink
Merge pull request #2265 from ty-dc/release-v0.6
Browse files Browse the repository at this point in the history
Use mike to construct the version, no artifact exists
  • Loading branch information
cyclinder committed Aug 30, 2023
2 parents e57710f + 659dcf8 commit 764d44d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion .github/workflows/auto-version-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
18 changes: 1 addition & 17 deletions .github/workflows/call-update-githubpages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 764d44d

Please sign in to comment.