From 44ed27dc5bde90d56ea4a55ab561a4f1c21d12d0 Mon Sep 17 00:00:00 2001 From: kormic911 Date: Sun, 31 Aug 2025 20:14:33 -0500 Subject: [PATCH 1/2] Updating workflows to properly tag a release --- .github/workflows/tag-release.yaml | 20 ++++++++++++++++++ ...elease.yaml => update-module-version.yaml} | 21 +++++++------------ 2 files changed, 27 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/tag-release.yaml rename .github/workflows/{release.yaml => update-module-version.yaml} (59%) diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml new file mode 100644 index 0000000..8f42f37 --- /dev/null +++ b/.github/workflows/tag-release.yaml @@ -0,0 +1,20 @@ +name: Create Tagged Release + +on: + push: + branches: + - main # Trigger on pushes to the main branch + +jobs: + create_tagged_release: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + permissions: + contents: write + steps: + - name: Create Tagged Release + uses: dexwritescode/release-on-merge-action@v1 # Or another suitable action + with: + version-increment-strategy: patch + initial-version: '1.0.0' \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/update-module-version.yaml similarity index 59% rename from .github/workflows/release.yaml rename to .github/workflows/update-module-version.yaml index d125d8b..7e92541 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/update-module-version.yaml @@ -1,12 +1,12 @@ -name: Publish release +name: Update Module Version on: push: branches: - - main # Trigger on pushes to the main branch + - develop # Trigger on pushes to the main branch jobs: - publish_release: + update_module_version: runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -14,10 +14,10 @@ jobs: contents: write steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: checkout + uses: actions/checkout@v2 - - name: Create Version + - name: Create Version From Current Tags uses: dexwritescode/release-on-merge-action@v1 # Or another suitable action id: version_tracker with: @@ -33,11 +33,4 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "Automated Release Tagging for ${{ steps.version_tracker.outputs.version }} in DevSetup.psd1" - branch: main - tagging_message: 'v${{ steps.version_tracker.outputs.version }}' - - #- name: Create Tagged Release - # uses: dexwritescode/release-on-merge-action@v1 # Or another suitable action - # with: - # version-increment-strategy: patch - # initial-version: '1.0.0' \ No newline at end of file + branch: develop \ No newline at end of file From 531f12c3f3213e06186dff48919b7ca2da153e1f Mon Sep 17 00:00:00 2001 From: kormic911 <2898792+kormic911@users.noreply.github.com> Date: Mon, 1 Sep 2025 01:14:45 +0000 Subject: [PATCH 2/2] Automated Release Tagging for 1.0.7 in DevSetup.psd1 --- DevSetup/DevSetup.psd1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DevSetup/DevSetup.psd1 b/DevSetup/DevSetup.psd1 index b68f608..e671fe2 100644 --- a/DevSetup/DevSetup.psd1 +++ b/DevSetup/DevSetup.psd1 @@ -12,7 +12,7 @@ RootModule = 'DevSetup.psm1' # Version number of this module. -ModuleVersion = '0.0.0' +ModuleVersion = '1.0.7' # Supported PSEditions # CompatiblePSEditions = @()