From 1087c745c26c6daffeec59c3638c2ab0d5a253f4 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Fri, 18 Oct 2024 13:46:28 +0300 Subject: [PATCH] chore: Expand release task towards actual use --- Justfile | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/Justfile b/Justfile index b8eb884..579f83b 100644 --- a/Justfile +++ b/Justfile @@ -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