-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(release): merge branch develop (release 0.1.1)
- Loading branch information
Showing
13 changed files
with
119 additions
and
29 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,23 @@ | ||
name: "tagged-release" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
tagged-release: | ||
name: "Tagged Release" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
|
||
- name: "Build & test" | ||
run: | | ||
echo "done!" | ||
- uses: "marvinpinto/action-automatic-releases@v1.2.0" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
draft: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
set cwd=%~dp0 | ||
cd %cwd% | ||
cd docs | ||
cd ../docs | ||
sphinx-apidoc --separate --ext-autodoc --ext-viewcode --templatedir source/_templates/ -TMf -o source/ ../revitron | ||
call make html | ||
cd %cwd% |
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,8 @@ | ||
#!/bin/sh | ||
|
||
dir=`dirname $0` | ||
cd "$dir/../docs" | ||
|
||
sphinx-apidoc --separate --ext-autodoc --ext-viewcode --templatedir source/_templates/ -TMf -o source/ ../revitron | ||
|
||
make html |
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,74 @@ | ||
#!/bin/sh | ||
|
||
dir=`dirname $0` | ||
cd "$dir/.." | ||
|
||
# Check if working directory is clean. | ||
if [[ $(git status -s) ]] | ||
then | ||
echo "Working directory is not clean!" | ||
git status -s | ||
echo | ||
fi | ||
|
||
# Get latest tag. | ||
latestTag=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
|
||
# Choose type of release. | ||
echo "Current version is: $latestTag" | ||
echo | ||
|
||
IFS='.' read -ra elem <<< "$latestTag" | ||
|
||
major=${elem[0]} | ||
minor=${elem[1]} | ||
patch=${elem[2]} | ||
|
||
newMajorTag=$((major + 1)).0.0 | ||
newMinorTag=$major.$((minor + 1)).0 | ||
newPatchTag=$major.$minor.$((patch + 1)) | ||
|
||
echo "Choose type of release:" | ||
echo | ||
echo " 1) Patch $newPatchTag (default)" | ||
echo " 2) Minor $newMinorTag" | ||
echo " 3) Major $newMajorTag" | ||
echo | ||
read -n 1 -p "Please select a number or press Enter for a patch: " option | ||
echo | ||
|
||
case $option in | ||
1) tag=$newPatchTag;; | ||
2) tag=$newMinorTag;; | ||
3) tag=$newMajorTag;; | ||
*) tag=$newPatchTag;; | ||
esac | ||
|
||
# Wait for confirmation. | ||
while true | ||
do | ||
read -p "Create release \"$tag\"? (y/n) " continue | ||
case $continue in | ||
[Yy]* ) | ||
break | ||
;; | ||
[Nn]* ) | ||
exit 0 | ||
;; | ||
* ) | ||
echo "Please only enter \"y\" or \"n\"." | ||
;; | ||
esac | ||
done | ||
echo | ||
|
||
# Updating version numbers. | ||
sed -i "s|REVITRON_VERSION.*|REVITRON_VERSION = '$tag'|g" "./revitron/__init__.py" | ||
|
||
# Commit, merge and tag. | ||
git add -A && git commit -m "build(release): prepare release $tag" | ||
git checkout master | ||
git merge develop --no-ff -m "build(release): merge branch develop (release $tag)" | ||
git tag -a -m "Release $tag" $tag | ||
git checkout develop | ||
git log -n 2 --graph --all |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 was deleted.
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.