File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11on :
2- push :
3- branches :
4- - develop
5- paths-ignore :
6- - CHANGELOG.md
7- - .vscode/**
8- - .github/**
9- - images/**
10- - tests/**
11- - ' **.md'
12- - ' **.yml'
2+ workflow_dispatch :
133env :
144 buildFolderName : output
155 buildArtifactName : output
@@ -26,14 +16,14 @@ permissions:
2616 checks : write # to allow the workflow to create checks
2717 statuses : write # to allow the workflow to create statuses
2818
29- # This workflow is triggered on push to the develop branch and deploys the module to the PowerShell Gallery as a preview version.
19+ # This workflow is triggered manually and deploys the module to the PowerShell Gallery as a preview version.
3020jobs :
3121 Build_Stage_Package_Module :
3222 name : Package Module
3323 runs-on : ubuntu-latest
3424 steps :
3525 - name : Checkout Code
36- uses : actions/checkout@v5
26+ uses : actions/checkout@v4
3727 with :
3828 ref : ${{ github.head_ref }} # checkout the correct branch name
3929 fetch-depth : 0
6454 if : ${{ success() && (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) }}
6555 steps :
6656 - name : Checkout Code
67- uses : actions/checkout@v5
57+ uses : actions/checkout@v4
6858 with :
6959 ref : ${{ github.head_ref }} # checkout the correct branch name
7060 fetch-depth : 0
Original file line number Diff line number Diff line change @@ -29,11 +29,19 @@ jobs:
2929 runs-on : ubuntu-latest
3030 steps :
3131 - name : Checkout Code
32- uses : actions/checkout@v5
32+ uses : actions/checkout@v4
3333 with :
3434 ref : ${{ github.head_ref }} # checkout the triggered ref (branch or tag)
3535 fetch-depth : 0
3636 token : ${{ secrets.GITHUB_TOKEN }}
37+ - name : Install GitVersion
38+ uses : gittools/actions/gitversion/setup@v0.9.15
39+ with :
40+ versionSpec : 5.x
41+ - name : Evaluate Next Version
42+ uses : gittools/actions/gitversion/execute@v0.9.15
43+ with :
44+ configFilePath : GitVersion.yml
3745 - name : Build & Package Module
3846 shell : pwsh
3947 run : ./build.ps1 -ResolveDependency -tasks pack
5361 if : ${{ success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
5462 steps :
5563 - name : Checkout Code
56- uses : actions/checkout@v5
64+ uses : actions/checkout@v4
5765 with :
5866 ref : ${{ github.head_ref }} # checkout the triggered ref (branch or tag)
5967 fetch-depth : 0
You can’t perform that action at this time.
0 commit comments