Skip to content

Commit a560326

Browse files
release: fix dirty workspace failure during cargo publish #42
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
1 parent 340606d commit a560326

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ jobs:
176176
TEST_WARNING=""
177177
fi
178178
179-
cat > RELEASE_NOTES.md << EOF
179+
mkdir -p artifacts
180+
cat > artifacts/RELEASE_NOTES.md << EOF
180181
${TEST_WARNING}## What's Changed
181182
182183
$CHANGELOG
@@ -205,7 +206,7 @@ jobs:
205206
- name: Create GitHub Release
206207
uses: softprops/action-gh-release@v1
207208
with:
208-
body_path: RELEASE_NOTES.md
209+
body_path: artifacts/RELEASE_NOTES.md
209210
files: artifacts/**/*.tar.gz
210211
draft: ${{ steps.check_test.outputs.is_test == 'true' }}
211212
prerelease: ${{ steps.check_test.outputs.is_test == 'true' }}
@@ -216,4 +217,4 @@ jobs:
216217
if: steps.check_test.outputs.is_test == 'false'
217218
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
218219
env:
219-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
220+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ target/
22

33
# Local Claude Code instructions (not committed to repo)
44
CLAUDE.local.md
5+
artifacts/

0 commit comments

Comments
 (0)