mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 21:24:43 +00:00
commented out steps to enable better testing
This commit is contained in:
2
.github/scripts/GenerateVersionNumber.ps1
vendored
2
.github/scripts/GenerateVersionNumber.ps1
vendored
@@ -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
|
||||||
|
|||||||
70
.github/workflows/docker.yml
vendored
70
.github/workflows/docker.yml
vendored
@@ -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 }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user