nightly #1407
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nightly | |
on: | |
workflow_dispatch : | |
branches : | |
- dev | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
runs-on: self-hosted | |
timeout-minutes: 180 | |
steps: | |
- uses: actions/checkout@v2 | |
with : | |
path : '.' | |
fetch-depth: 0 | |
- name: Run Psake | |
env: | |
_PK_PHOENY_ : ${{ secrets._PK_PHOENY_ }} | |
_TK_PHOENY_ : ${{ secrets._TK_PHOENY_ }} | |
_TW_PHOENY : ${{ secrets._TW_PHOENY }} | |
_TW_TOKEN_ : ${{ secrets._TW_TOKEN_ }} | |
_TW_USER_ : ${{ secrets._TW_USER_ }} | |
run: > | |
.\pipelines\runbuild.ps1 -properties | |
@{ | |
"buildConfig" = "Release"; | |
"updateAssemblyInfo" = $true; | |
"isTestingEnabled" = $true; | |
"testingStrength" = 10; | |
"packNugets" = $true; | |
} | |
- name : Create Tag | |
if : env.BuildNumber && success() && github.event_name != 'pull_request' | |
run : | | |
git config --global user.email "gh-action@tcopengroup.com" | |
git config --global user.name "gh-action" | |
$tag = "GH-${{github.run_id}}-${{env.BuildNumber}}" | |
git tag $tag | |
git push --tags | |
continue-on-error: true | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: Test report | |
path: '**/TestResults/*.xml' | |
reporter: dotnet-trx | |
- name: Upload NuGets artifacts | |
uses: actions/upload-artifact@v4 | |
if: success() | |
with: | |
name: nugets | |
path: ${{ github.workspace }}/nugets/*.nupkg | |
- name: Upload PLC libraries | |
uses: actions/upload-artifact@v4 | |
if: success() | |
with: | |
name: plcLibs | |
path: ${{ github.workspace }}\plcLibs\*.library | |
- name: Cake-Draft-Release-OrgsNugets | |
env: | |
TC_OPEN_GROUP_USER_PAT : ${{ secrets.TC_OPEN_GROUP_USER_PAT }} | |
run: > | |
.\pipelines\release-to-gh.ps1 |