Skip to content

Commit

Permalink
chore: Expand release task towards actual use
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Oct 19, 2024
1 parent 4e1aff0 commit 1087c74
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,30 @@ pristine:
git diff-files --quiet || exit 1

release semver: pristine
make rockspecs/decasify-{{semver}}-1.rockspec rockspecs/decasify.nvim-{{semver}}-1.rockspec
git add action.yml README.md rockspecs/decasify-{{semver}}-1.rockspec rockspecs/decasify.nvim-{{semver}}-1.rockspec
make rockspecs/decasify{,.nvim}-{{semver}}-1.rockspec
sed -i -e '/^version/s/".*"/"{{semver}}"/' Cargo.toml
env SEMVER={{semver}} sed -i -e "/^decasify =/s/\".*\"/\"${SEMVER%\.*}\"/" README.md
make decasify-{{semver}}.md
git checkout cl -- CHANGELOG.md
make decasify-{{semver}}.md
# make SEMVER={{semver}} CHANGELOG.md decasify-{{semver}}.md
cargo build
git add Cargo.{toml,lock} README.md CHANGELOG.md rockspecs/decasify{,.nvim}-{{semver}}-1.rockspec
git commit -m "chore: Release v{{semver}}"
git tag v{{semver}}
git push --atomic upstream master v{{semver}}
luarocks pack rockspecs/decasify-{{semver}}-1.rockspec
luarocks pack rockspecs/decasify.nvim-{{semver}}-1.rockspec
gh release create v{{semver}} -t "Decasify v{{semver}}" decasify-{{semver}}-1.src.rock decasify.nvim-{{semver}}-1.src.rock
git tag -s v{{semver}} -F decasify-{{semver}}.md
./config.status
maturin build --frozen
# cp /home/caleb/.local/share/cargo/wheels/decasify-{{semver}}-cp312-cp312-manylinux_2_39_x86_64.whl .
wasm-pack build --features wasm
echo git push --atomic origin master v{{semver}}
echo gh release download v{{semver}}
echo wget wget https://files.pythonhosted.org/packages/cp312/d/decasify/decasify-$SEMVER-cp312-cp312-manylinux_2_34_x86_64.whl
echo ls decasify-$SEMVER-cp312-cp312-manylinux_2_34_x86_64.whl decasify{,.nvim}-$SEMVER-1.src.rock decasify-$SEMVER.{tar.zst,zip} | xargs -n1 gpg -a --detach-sign
echo gh release upload v$SEMVER decasify-$SEMVER-cp312-cp312-manylinux_2_34_x86_64.whl{,.asc} decasify{,.nvim}-$SEMVER-1.src.rock{,.asc} decasify-$SEMVER.{tar.zst,zip}.asc
echo make CARCH=x86_64 decasify{,.nvim}-{{semver}}-1.src.rock decasify-{{semver}}-1.x86_64.rock
echo maturin publish --locked
echo wasm-pack publish
echo gpg -a --detatch-sign decasify-{{semver}}.{tar.zst,zip}
echo gh upload create v{{semver}} -t "Decasify v{{semver}}" *.rock{,.asc} *.whl{,.asc} *.{tar.zst,zip}.asc

# vim: set ft=just

0 comments on commit 1087c74

Please sign in to comment.