Skip to content

Commit

Permalink
v0.6.19
Browse files Browse the repository at this point in the history
  • Loading branch information
alanvardy committed Dec 20, 2024
1 parent fac847b commit 48129ac
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tod"
version = "0.6.18"
version = "0.6.19"
authors = ["Alan Vardy <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
7 changes: 3 additions & 4 deletions PUBLISH_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,19 @@ Create `tod-bin` directory for pushing to AUR
2. Create PR with

```fish
VERSION=v0.6.18 ./create_pr.sh
VERSION=0.6.19 ./create_pr.sh
```

3. Wait for it to pass, then merge and pull in latest changes

```fish
gh pr merge -r --admin
gs
gh pr merge -r --admin && gs
```

4. Release it to all the places

```fish
VERSION=v0.6.18 ./release.sh
VERSION=0.6.19 ./release.sh
```

## Publish to Cargo and AUR (older method)
Expand Down
6 changes: 3 additions & 3 deletions create_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Check if the VERSION environment variable is set
if [ -z "${VERSION}" ]; then
echo "Error: VERSION environment variable is not set."
echo "Usage: VERSION=v0.6.15 ./publish.sh"
echo "Usage: VERSION=0.6.15 ./publish.sh"
exit 1
fi

Expand All @@ -12,10 +12,10 @@ ambr --regex "^version = \"\d+\.\d+\.\d+\"" "version = \"$VERSION\"" Cargo.toml
echo "=== UPDATE AND TEST ===" &&
./update_test.sh &&
echo "=== CREATING PR ===" &&
gt create "$VERSION" -a -m "$VERSION" --no-interactive &&
gt create "v$VERSION" -a -m "v$VERSION" --no-interactive &&
gt submit --no-interactive &&
gh pr ready &&
sleep 5 &&
gh pr checks --watch -i 5;
soundcomplete;
paplay /usr/share/sounds/freedesktop/stereo/complete.oga;

2 changes: 1 addition & 1 deletion push_aur.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rm target/cargo-aur/*.tar.gz &&
cd ../tod-bin/ || exit &&
echo "=== PUSHING TO AUR ===" &&
git add . &&
git commit -m "new version" &&
git commit -m "v$VERSION" &&
git push aur &&
cd ../tod || exit &&
echo "=== SUCCESS ==="
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
echo "=== RUNNING cargo aur ===" &&
cargo aur &&
echo "=== CREATING GITHUB RELEASE ===" &&
gh release create "$VERSION" ./target/cargo-aur/*.tar.gz --title "$VERSION" --generate-notes &&
gh release create "v$VERSION" ./target/cargo-aur/*.tar.gz --title "v$VERSION" --generate-notes &&
echo "=== RUNNING cargo publish ===" &&
cargo publish &&
echo "=== RUNNING push_aur.sh ===" &&
Expand Down

0 comments on commit 48129ac

Please sign in to comment.