Skip to content

Commit

Permalink
Merge pull request #26 from Lyt99/feature/v1.0.0
Browse files Browse the repository at this point in the history
remove `clean-assets` phase in github action
  • Loading branch information
BSWANG authored May 7, 2024
2 parents 7c3dd18 + abdc23c commit 536cfa6
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,6 @@ jobs:
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com

clean-assets:
runs-on: ubuntu-latest
needs: deploy
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Get latest tag
run: |
TAG=$(git fetch --tags && git tag --sort=-v:refname | grep -E '^kubeskoop-exporter-' | head -n 1)
if [[ -n "$TAG" ]]; then
PREFIX="kubeskoop-exporter-"
VERSION=${TAG#$PREFIX}
echo "latest tag:$TAG,version:$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV
else
echo "没有找到符合要求的tag"
fi
- uses: dev-drprasad/[email protected]
with:
tag_name: ${{ env.RELEASE_TAG }}
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_release: true #(optional) default: true

release-chart:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 536cfa6

Please sign in to comment.