File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build :
10+
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Initialize CodeQL
16+ uses : github/codeql-action/init@v1
17+ with :
18+ languages : ' csharp'
19+ queries : security-and-quality
20+ - name : Setup .NET
21+ uses : actions/setup-dotnet@v1
22+ with :
23+ dotnet-version : 5.0.x
24+ - name : Restore dependencies
25+ run : dotnet restore src/OctoshiftCLI.sln
26+ - name : Build
27+ run : dotnet build src/OctoshiftCLI.sln --no-restore
28+ - name : Unit Test
29+ run : dotnet test src/OctoshiftCLI.sln --filter FullyQualifiedName\!~Integration --no-build --verbosity normal
30+ - name : Integration Test
31+ env :
32+ ADO_PAT : ${{ secrets.ADO_PAT }}
33+ run : dotnet test src/OctoshiftCLI.sln --filter FullyQualifiedName\~Integration --no-build --verbosity normal
34+ - name : Perform CodeQL Analysis
35+ uses : github/codeql-action/analyze@v1
36+
37+ - name : Create Distributable Binaries
38+ run : ./publish.ps1
39+ shell : pwsh
40+ - name : Create Release
41+ id : create_release
42+ uses : actions/create-release@v1
43+ env :
44+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+ with :
46+ tag_name : ${{ github.ref }}
47+ release_name : Release ${{ github.ref }}
48+ body : |
49+ Changes in this Release
50+ - First Change
51+ - Second Change
52+ draft : false
53+ prerelease : false
54+
You can’t perform that action at this time.
0 commit comments