release.sh: push with the Gitea token
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
133b80c83b
commit
39ec57d5e0
1 file changed
+2
-1
@@ -27,7 +27,8 @@ sed -i "s/^__version__ = .*/__version__ = \"$VERSION\"/" k65studio/__init__.py
|
|||||||
sed -i "s/^pkgver=.*/pkgver=$VERSION/; s/^pkgrel=.*/pkgrel=1/" packaging/PKGBUILD
|
sed -i "s/^pkgver=.*/pkgver=$VERSION/; s/^pkgrel=.*/pkgrel=1/" packaging/PKGBUILD
|
||||||
git diff --quiet || git commit -qam "Release v$VERSION"
|
git diff --quiet || git commit -qam "Release v$VERSION"
|
||||||
git tag -a "v$VERSION" -m "v$VERSION"
|
git tag -a "v$VERSION" -m "v$VERSION"
|
||||||
git push -q origin main "v$VERSION"
|
AUTH="$(printf 'MrBlake:%s' "$TOKEN" | base64 -w0)"
|
||||||
|
git -c http.extraHeader="Authorization: Basic $AUTH" push -q origin main "v$VERSION"
|
||||||
|
|
||||||
BUILD="$(mktemp -d)"
|
BUILD="$(mktemp -d)"
|
||||||
trap 'rm -rf "$BUILD"' EXIT
|
trap 'rm -rf "$BUILD"' EXIT
|
||||||
|
|||||||
Reference in new issue
Block a user