Skip to content

Commit

Permalink
ci: 调试打印
Browse files Browse the repository at this point in the history
  • Loading branch information
Otto-J committed Oct 24, 2023
1 parent 9fc7710 commit a55b40e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
echo "Creating release for tag $tag"
tags=$(git ls-remote --tags origin)
latest_tag=$(echo "$tags" | awk -F/ '{print $NF}' | sort -V | tail -n1)
echo "::set-output name=tag::$latest_tag"
zip -r dist.zip main.js manifest.json styles.css
gh release create "$tag" --title="$tag" main.js styles.css manifest.json dist.zip
gh release create "$latest_tag" --title="$latest_tag" main.js styles.css manifest.json dist.zip

0 comments on commit a55b40e

Please sign in to comment.