diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 02d25fa..dfebea3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ on: jobs: Setup: - name: Setup + name: "Setup & Configuration" runs-on: ubuntu-latest outputs: GitVersion_BranchName: ${{ steps.gitversion.outputs.GitVersion_BranchName }} @@ -28,6 +28,7 @@ jobs: with: useConfigFile: true build: + name: "Build & Test" runs-on: ubuntu-latest needs: Setup steps: @@ -54,8 +55,22 @@ jobs: with: name: AzureDevOpsWorkItemClone path: ./output/* - + + Wiki: + name: "Release to GitHub Wiki" + runs-on: ubuntu-latest + needs: [build, Setup] + if: ${{ success() && ( needs.Setup.outputs.GitVersion_PreReleaseLabel == 'Preview' || needs.Setup.outputs.GitVersion_PreReleaseLabel == '' ) }} + steps: + - uses: actions/checkout@v3 + - uses: spenserblack/actions-wiki@ + with: + # Whatever directory you choose will be mirrored to the GitHub + # .wiki.git. The default is .github/wiki. + path: docs + release: + name: "Release to GitHub Releases" runs-on: ubuntu-latest needs: [build, Setup] if: ${{ success() && ( needs.Setup.outputs.GitVersion_PreReleaseLabel == 'Preview' || needs.Setup.outputs.GitVersion_PreReleaseLabel == '' ) }}