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 diff --git a/DevSetup/DevSetup.psd1 b/DevSetup/DevSetup.psd1 index 6a13a2e..e671fe2 100644 --- a/DevSetup/DevSetup.psd1 +++ b/DevSetup/DevSetup.psd1 @@ -12,7 +12,7 @@ RootModule = 'DevSetup.psm1' # Version number of this module. -ModuleVersion = '1.0.6' +ModuleVersion = '1.0.7' # Supported PSEditions # CompatiblePSEditions = @()