autocommit docs during release
This commit is contained in:
parent
09b624f120
commit
26022fc9fb
2 changed files with 5 additions and 3 deletions
|
@ -67,7 +67,7 @@ ADD ./archivebox.egg-info/requires.txt "$CODE_DIR/archivebox.egg-info/requires.t
|
||||||
RUN apt-get update -qq \
|
RUN apt-get update -qq \
|
||||||
&& apt-get install -qq -y --no-install-recommends \
|
&& apt-get install -qq -y --no-install-recommends \
|
||||||
build-essential python-dev python3-dev \
|
build-essential python-dev python3-dev \
|
||||||
&& grep -B -1 -E '^$' "$CODE_DIR/archivebox.egg-info/requires.txt" | pip install --quiet -r /dev/stdin \
|
&& grep -B 1000 -E '^$' "$CODE_DIR/archivebox.egg-info/requires.txt" | pip install --quiet -r /dev/stdin \
|
||||||
&& apt-get purge -y build-essential python-dev python3-dev \
|
&& apt-get purge -y build-essential python-dev python3-dev \
|
||||||
&& apt-get autoremove -y \
|
&& apt-get autoremove -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
@ -37,12 +37,14 @@ cd "$DIR"
|
||||||
if [ -z "$(git status --porcelain)" ] && [[ "$(git branch --show-current)" == "master" ]]; then
|
if [ -z "$(git status --porcelain)" ] && [[ "$(git branch --show-current)" == "master" ]]; then
|
||||||
git pull
|
git pull
|
||||||
else
|
else
|
||||||
echo "[X] Commit your changes and make sure git is checked out on clean master."
|
echo "[!] Warning: git status is dirty!"
|
||||||
exit 4
|
echo " Press Ctrl-C to cancel, or wait 10sec to continue..."
|
||||||
|
sleep 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[*] Bumping VERSION from $OLD_VERSION to $NEW_VERSION"
|
echo "[*] Bumping VERSION from $OLD_VERSION to $NEW_VERSION"
|
||||||
echo "$NEW_VERSION" > "$VERSION_FILE"
|
echo "$NEW_VERSION" > "$VERSION_FILE"
|
||||||
|
git add "$DIR/docs"
|
||||||
git add "$VERSION_FILE"
|
git add "$VERSION_FILE"
|
||||||
git commit -m "$NEW_VERSION release"
|
git commit -m "$NEW_VERSION release"
|
||||||
git tag -a "v$NEW_VERSION" -m "v$NEW_VERSION"
|
git tag -a "v$NEW_VERSION" -m "v$NEW_VERSION"
|
||||||
|
|
Loading…
Add table
Reference in a new issue