diff --git a/.github/version.py b/.github/version.py index 3e1ce68..f086507 100644 --- a/.github/version.py +++ b/.github/version.py @@ -13,7 +13,7 @@ class SetupVersion: def update_addon_init(self): """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: with open(self.addon_file, "r") as f: diff --git a/.github/workflows/pr_main_start.yml b/.github/workflows/pr_main_start.yml index 26d39f8..99a5157 100644 --- a/.github/workflows/pr_main_start.yml +++ b/.github/workflows/pr_main_start.yml @@ -24,6 +24,8 @@ jobs: echo "::set-output name=type::patch" fi + - uses: actions/checkout@main + - name: Create new Semantic Version uses: zwaldowski/semver-release-action@v2 id: new_semantic_setup @@ -33,5 +35,12 @@ jobs: dry_run: true 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: uses: Moderlab-Production/BlenderTemplate/.github/workflows/unit_test.yml@main