-
Notifications
You must be signed in to change notification settings - Fork 52
73 lines (61 loc) · 2.23 KB
/
check-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Check-release-workflow
on:
pull_request:
branches:
- master
types: [opened, synchronize, reopened, edited]
push:
branches:
- master
- jtikekar/masterV3.0
jobs:
Check-release:
runs-on: windows-latest
if: contains(github.event.pull_request.body, 'The workflow check-release was intentionally skipped.') == false
steps:
- uses: actions/checkout@master
- name: Set timestamp
id: setTimestamp
run: |
$timestamp = [DateTime]::UtcNow.ToString("yyyy-MM-ddTHH-mm-ssZ")
if ($timestamp.Contains("'"))
{
throw "Unexpected timestamp containing a single quote: $timestamp"
}
if ($timestamp.Contains('"'))
{
throw "Unexpected timestamp containing a double quote: $timestamp"
}
if ($timestamp.Contains(':'))
{
throw "Unexpected timestamp containing a full colon: $timestamp"
}
Write-Output "::set-output name=timestamp::$timestamp"
- name: Install .NET core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.100'
- name: Build for release
working-directory: src
run: powershell .\BuildForRelease.ps1
- name: Check --help and Readme coincide
working-directory: src
run: powershell .\CheckHelpInReadme.ps1
- name: Package
working-directory: src
run: powershell .\PackageRelease.ps1 -version LATEST.alpha
- name: Upload AasxServerBlazor
uses: actions/upload-artifact@v2
with:
name: AasxServerBlazor.LATEST.alpha.${{ steps.setTimestamp.outputs.timestamp }}
path: artefacts/release/LATEST.alpha/AasxServerBlazor.zip
- name: Upload AasxServerCore
uses: actions/upload-artifact@v2
with:
name: AasxServerCore.LATEST.alpha.${{ steps.setTimestamp.outputs.timestamp }}
path: artefacts/release/LATEST.alpha/AasxServerCore.zip
- name: Upload AasxServerWindows
uses: actions/upload-artifact@v2
with:
name: AasxServerWindows.LATEST.alpha.${{ steps.setTimestamp.outputs.timestamp }}
path: artefacts/release/LATEST.alpha/AasxServerWindows.zip