Rename from Reloaded to Daved
Because now it's in my hands!
This commit is contained in:
27
release.sh
27
release.sh
@@ -15,26 +15,23 @@ fi
|
||||
echo "Tag: $TAG"
|
||||
|
||||
echo "Building the thing..."
|
||||
sed -i "s/## Version: .*/## Version: $TAG/" Heimdall.toc
|
||||
sed -i "s/local VERSION = .*/local VERSION = \"$TAG\"/" Heimdall.lua
|
||||
git add Heimdall.toc Heimdall.lua
|
||||
sed -i "s/## Version: .*/## Version: $TAG/" ActionBarSaverDaved.toc
|
||||
sed -i "s/local VERSION = .*/local VERSION = \"$TAG\"/" ActionBarSaverDaved.lua
|
||||
git add ActionBarSaverDaved.toc ActionBarSaverDaved.lua
|
||||
git commit -m "Release $TAG"
|
||||
git tag -f $TAG
|
||||
git push origin $TAG
|
||||
|
||||
rm Heimdall-${TAG}.zip
|
||||
mkdir Heimdall
|
||||
cp *.lua *.toc Heimdall
|
||||
cp -r Modules Heimdall
|
||||
cp -r Sounds Heimdall
|
||||
cp -r Texture Heimdall
|
||||
7z a Heimdall-${TAG}.zip Heimdall
|
||||
rm -rf Heimdall
|
||||
rm ActionBarSaverDaved-${TAG}.zip
|
||||
mkdir ActionBarSaverDaved
|
||||
cp *.lua *.toc ActionBarSaverDaved
|
||||
7z a ActionBarSaverDaved-${TAG}.zip ActionBarSaverDaved
|
||||
rm -rf ActionBarSaverDaved
|
||||
|
||||
echo "Creating a release..."
|
||||
TOKEN="$GITEA_API_KEY"
|
||||
GITEA="https://git.site.quack-lab.dev"
|
||||
REPO="dave/wow-ABS"
|
||||
REPO="dave/wow_ABS"
|
||||
# Create a release
|
||||
RELEASE_RESPONSE=$(curl -s -X POST \
|
||||
-H "Authorization: token $TOKEN" \
|
||||
@@ -56,6 +53,6 @@ echo "Release ID: $RELEASE_ID"
|
||||
echo "Uploading the things..."
|
||||
curl -X POST \
|
||||
-H "Authorization: token $TOKEN" \
|
||||
-F "attachment=@Heimdall-${TAG}.zip" \
|
||||
"$GITEA/api/v1/repos/$REPO/releases/${RELEASE_ID}/assets?name=Heimdall-${TAG}.zip"
|
||||
rm Heimdall-${TAG}.zip
|
||||
-F "attachment=@ActionBarSaverDaved-${TAG}.zip" \
|
||||
"$GITEA/api/v1/repos/$REPO/releases/${RELEASE_ID}/assets?name=ActionBarSaverDaved-${TAG}.zip"
|
||||
rm ActionBarSaverDaved-${TAG}.zip
|
||||
|
Reference in New Issue
Block a user