Skip to content

Commit 5be49e0

Browse files
committed
zxc|
1 parent ccb1160 commit 5be49e0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/publish-documentation.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,26 @@ jobs:
3131
echo "github-run-number:${{ github.run_number }}"
3232
3333
versioning:
34-
name: 'Determine version'
34+
name: 'Extract version (new)'
3535
needs: [workflow-variables]
3636
runs-on: ubuntu-latest
37-
3837
outputs:
39-
friendly-version: ${{ env.friendly-version }}
40-
assembly-version: ${{ env.assembly-version }}
41-
assembly-informational-version: ${{ env.assembly-informational-version }}
42-
file-version: ${{ env.file-version }}
43-
package-version: ${{ env.package-version }}
38+
friendly-version: ${{ steps.versioning.outputs.friendly-version }}
4439

4540
steps:
4641
- name: 'Checkout ${{ github.head_ref || github.ref }}'
47-
uses: actions/checkout@v4
48-
- name: 'Determine versions'
49-
uses: ./.github/actions/determine-version
50-
id: determine-version
42+
uses: actions/checkout@v5
43+
with:
44+
fetch-depth: 0 # Ensure the full git history is available for versioning
45+
- name: 'Setup .NET ${{ env.dotnet-sdk-version }}'
46+
uses: actions/setup-dotnet@v4
47+
with:
48+
dotnet-version: ${{ env.dotnet-sdk-version }}
49+
- name: 'Extract version from branch name'
50+
id: versioning
51+
uses: './.github/actions/extract-version'
5152
with:
52-
config-file-path: './.gitversion/version.yml'
53-
run-number: ${{ needs.workflow-variables.outputs.github-run-number }}
53+
branch-name: ${{ github.ref_name }}
5454

5555
generate-docs:
5656
name: 'Generate documentation'
@@ -86,4 +86,4 @@ jobs:
8686

8787
- name: 'Deploy to GitHub Pages'
8888
id: deployment
89-
uses: actions/deploy-pages@v4
89+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)