File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ jobs:
215215 # needs: [publish-production-package]
216216 needs : [versioning, build]
217217 env :
218- assembly -version : ${{ needs.versioning.outputs.assembly -version }}
218+ friendly -version : ${{ needs.versioning.outputs.friendly -version }}
219219 environment :
220220 name : github-pages
221221 url : ${{ steps.deployment.outputs.page_url }}
@@ -230,14 +230,14 @@ jobs:
230230 - run : dotnet tool update -g docfx
231231 - run : docfx ./docfx/api-reference.json
232232 - run : |
233- mkdir -p ./docs/${{ env.assembly -version }}
234- cp -r ./docs/temp/ ./docs/${{ env.assembly -version }}
233+ mkdir -p ./docs/${{ env.friendly -version }}
234+ cp -r ./docs/temp/ ./docs/${{ env.friendly -version }}/
235235 - run : |
236236 git checkout docs
237237 git config --global user.email "action@github.com"
238238 git config --global user.name "GitHub Action"
239- git add -- ./docs/${{ env.assembly -version }}
240- git commit -m'added ./docs/${{ env.assembly -version }}' -- ./docs/${{ env.assembly -version }}
239+ git add -- ./docs/${{ env.friendly -version }}/
240+ git commit -m'added ./docs/${{ env.friendly -version }}/ ' -- ./docs/${{ env.friendly -version }}/
241241 git push --force origin docs
242242 # - name: Upload artifact
243243 # uses: actions/upload-pages-artifact@v3
Original file line number Diff line number Diff line change 2929 required : false
3030 default : ' '
3131 outputs :
32+ friendly-version :
33+ description : " The friedly version."
34+ value : ${{ jobs.version.outputs.friendly-version }}
3235 assembly-version :
3336 description : " The assembly version."
3437 value : ${{ jobs.version.outputs.assembly-version }}
@@ -72,10 +75,14 @@ jobs:
7275 with :
7376 useConfigFile : true
7477 configFilePath : ${{ inputs.config-file-path }}
78+
79+ - name : ' Set friendly version'
80+ shell : bash
81+ run : echo "friendly-version=${{ steps.gitversion.outputs.assemblySemVer }}" >> $GITHUB_ENV
7582
7683 - name : ' Set assembly version'
7784 shell : bash
78- run : echo "assembly-version=${{ steps.gitversion.outputs.AssemblySemFileVer }}.${{ inputs.run-number }}.${{ steps.gitversion.outputs.CommitsSinceVersionSource }}" >> $GITHUB_ENV
85+ run : echo "assembly-version=${{ steps.gitversion.outputs.assemblySemVer }}.${{ inputs.run-number }}.${{ steps.gitversion.outputs.CommitsSinceVersionSource }}" >> $GITHUB_ENV
7986
8087 - name : ' Set assembly informational version'
8188 shell : bash
You can’t perform that action at this time.
0 commit comments