Update the setup PR

This commit is contained in:
2022-05-30 21:47:30 +02:00
parent efdbd8fc11
commit bc32af501b
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class SetupVersion:
def update_addon_init(self): def update_addon_init(self):
"""Simple function to update the bl_info to set the Git tag release""" """Simple function to update the bl_info to set the Git tag release"""
regex, update = r'[0-9]{1,2}\, [0-9]{1,2}\, [0-9{1,2}]', '' regex, update = r'[0-9]{1,2}\, [0-9]{1,2}\, [0-9]{1,2}', ''
try: try:
with open(self.addon_file, "r") as f: with open(self.addon_file, "r") as f:
+9
View File
@@ -24,6 +24,8 @@ jobs:
echo "::set-output name=type::patch" echo "::set-output name=type::patch"
fi fi
- uses: actions/checkout@main
- name: Create new Semantic Version - name: Create new Semantic Version
uses: zwaldowski/semver-release-action@v2 uses: zwaldowski/semver-release-action@v2
id: new_semantic_setup id: new_semantic_setup
@@ -33,5 +35,12 @@ jobs:
dry_run: true dry_run: true
prefix: v prefix: v
- name: Make the github release
uses: ncipollo/release-action@v1.10.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
tag: ${{ steps.new_semantic_setup.outputs.version_tag }}
unit-test: unit-test:
uses: Moderlab-Production/BlenderTemplate/.github/workflows/unit_test.yml@main uses: Moderlab-Production/BlenderTemplate/.github/workflows/unit_test.yml@main