Skip to content

Commit

Permalink
fix: shell syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chilingling committed Jan 8, 2025
1 parent 41d3a4b commit ec512c1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ jobs:
run: pnpm install

- name: Run Build
run: |
pnpm run build:plugin
pnpm run build:alpha > build-alpha.log 2>&1
run: pnpm run build:plugin && pnpm run build:alpha > build-alpha.log 2>&1

- name: Upload build logs
uses: actions/upload-artifact@v4
Expand All @@ -48,18 +46,18 @@ jobs:
run: |
tag_name="${GITHUB_REF#refs/tags/}"
if [[ "$tag_name" == *alpha* ]]; then
echo "dist_tag=alpha" >> $GITHUB_OUTPUT
echo "dist_tag=alpha" >> "$GITHUB_OUTPUT"
elif [[ "$tag_name" == *beta* ]]; then
echo "dist_tag=beta" >> $GITHUB_OUTPUT
echo "dist_tag=beta" >> "$GITHUB_OUTPUT"
elif [[ "$tag_name" == *rc* ]]; then
echo "dist_tag=rc" >> $GITHUB_OUTPUT
echo "dist_tag=rc" >> "$GITHUB_OUTPUT"
else
echo "dist_tag=latest" >> $GITHUB_OUTPUT
echo "dist_tag=latest" >> "$GITHUB_OUTPUT"
fi
- name: Verify clean working directory
run: |
if [[ -n $(git status --porcelain) ]]; then
if [[ -n "$(git status --porcelain)" ]]; then
echo "Working directory is not clean"
exit 1
fi
Expand Down

0 comments on commit ec512c1

Please sign in to comment.