forked from jpanther/dectorio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
5 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
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,16 @@ | ||
#!/bin/bash | ||
# Run this script after committing an updated info.json to automatically tag the update and prepare a zip of it. | ||
|
||
# Get mod name and version from info.json | ||
# https://stedolan.github.io/jq/ | ||
modname=`cat info.json|jq -r .name` | ||
modver=`cat info.json|jq -r .version` | ||
|
||
# Create git tag for this version | ||
git tag "v$modver" | ||
|
||
# Prepare zip for Factorio native use and mod portal | ||
git archive --prefix "${modname}_$modver/" -o "../release/${modname}_$modver.zip" HEAD | ||
|
||
# Push tag to git | ||
git push origin "v$modver" |