-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not crash if there are no matches
- Loading branch information
1 parent
8021a51
commit 51d52a2
Showing
6 changed files
with
165 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
set -euo pipefail | ||
|
||
grep "current_version =" "$REPO_ROOT/pyproject.toml" | ||
|
||
while true; do | ||
read -rp "Is the current version flag correctly set? [y/N] " yn | ||
case $yn in | ||
[yY]* ) break;; | ||
[Nn]* ) exit;; | ||
* ) exit ;; | ||
esac | ||
done | ||
|
||
# update the caches | ||
uv sync | ||
touch "$REPO_ROOT/flake.nix" | ||
|
||
# ensure that everything works as expected | ||
mkdocs build --clean | ||
pytest | ||
|
||
rm -rf "$REPO_ROOT/dist" | ||
rm -f "$REPO_ROOT/isd.x86_64-linux.AppImage" | ||
rm -f "$REPO_ROOT/isd.aarch64-linux.AppImage" | ||
|
||
# start building everything | ||
uv build | ||
|
||
echo "Building x86-64 isd-AppImage" | ||
nix build .#isd-AppImage | ||
cp "$(readlink -f ./result)" isd.x86_64-linux.AppImage | ||
|
||
echo "Building aarch64 isd-AppImage" | ||
nix build .#packages.aarch64-linux.isd-AppImage | ||
cp "$(readlink -f ./result)" isd.aarch64-linux.AppImage | ||
|
||
# publish latest docs | ||
echo "Publishing docs" | ||
mkdocs gh-deploy --no-history | ||
|
||
echo "Remember to update PyPI!" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.