commented out steps to enable better testing

This commit is contained in:
Andrew Welker
2020-03-16 13:54:30 -06:00
parent a0ddeb9328
commit 73088c9977
2 changed files with 36 additions and 36 deletions

View File

@@ -1,4 +1,4 @@
$latestVersions = $(git describe --tags $(git tag --merged master) --abbrev=0) $latestVersions = $(git describe --tags $(git tag --merged master))
$latestVersion = [version]"0.0.0" $latestVersion = [version]"0.0.0"
Foreach ($version in $latestVersions) { Foreach ($version in $latestVersions) {
Write-Host $version Write-Host $version

View File

@@ -27,7 +27,7 @@ jobs:
auth_header="$(git config --local --get http.https://github.com/.extraheader)" auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Set Build to Relase if triggered from Master - name: Set Build to Release if triggered from Master
run: | run: |
if("$($Env:GITHUB_REF)".contains("$($Env:RELEASE_BRANCH)")) { if("$($Env:GITHUB_REF)".contains("$($Env:RELEASE_BRANCH)")) {
Write-Host "Setting build type to Release" Write-Host "Setting build type to Release"
@@ -38,38 +38,38 @@ jobs:
run: | run: |
$version = ./.github/scripts/GenerateVersionNumber.ps1 $version = ./.github/scripts/GenerateVersionNumber.ps1
Write-Output "::set-env name=VERSION::$version" Write-Output "::set-env name=VERSION::$version"
- name: Update AssemblyInfo.cs # - name: Update AssemblyInfo.cs
shell: powershell # shell: powershell
run: | # run: |
Write-Output ${{ env.VERSION }} # Write-Output ${{ env.VERSION }}
./.github/scripts/UpdateAssemblyVersion.ps1 ${{ env.VERSION }} # ./.github/scripts/UpdateAssemblyVersion.ps1 ${{ env.VERSION }}
- name: Build Solution # - name: Build Solution
shell: powershell # shell: powershell
run: | # run: |
Invoke-Expression "docker run --rm --mount type=bind,source=""$($Env:GITHUB_WORKSPACE)"",target=""c:/project"" pepperdash/sspbuilder c:\cihelpers\vsidebuild.exe -Solution ""c:\project\$($Env:SOLUTION_PATH)\$($Env:SOLUTION_FILE)"" -BuildSolutionConfiguration $($ENV:BUILD_TYPE)" # Invoke-Expression "docker run --rm --mount type=bind,source=""$($Env:GITHUB_WORKSPACE)"",target=""c:/project"" pepperdash/sspbuilder c:\cihelpers\vsidebuild.exe -Solution ""c:\project\$($Env:SOLUTION_PATH)\$($Env:SOLUTION_FILE)"" -BuildSolutionConfiguration $($ENV:BUILD_TYPE)"
./.github/scripts/ZipBuildOutput.ps1 # ./.github/scripts/ZipBuildOutput.ps1
- name: Upload Artifact # - name: Upload Artifact
uses: actions/upload-artifact@v1 # uses: actions/upload-artifact@v1
with: # with:
name: Build # name: Build
path: ./output.zip # path: ./output.zip
- name: Create Release # - name: Create Release
id: create_release # id: create_release
uses: actions/create-release@v1 # uses: actions/create-release@v1
with: # with:
tag_name: v${{ env.VERSION }} # tag_name: v${{ env.VERSION }}
release_name: v${{ env.VERSION }} # release_name: v${{ env.VERSION }}
prerelease: ${{contains('debug', env.BUILD_TYPE)}} # prerelease: ${{contains('debug', env.BUILD_TYPE)}}
env: # env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload # - name: Upload
id: upload_release # id: upload_release
uses: actions/upload-release-asset@v1 # uses: actions/upload-release-asset@v1
with: # with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./output.zip # asset_path: ./output.zip
asset_name: output.zip # asset_name: output.zip
asset_content_type: application/zip # asset_content_type: application/zip
env: # env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}