Skip to content

Commit 007ca12

Browse files
authored
Merge branch 'dylan-smith/publish-binaries' of https://github.com/github/OctoshiftCLI into dylan-smith/publish-binaries
2 parents f4aa3e7 + 98ce94a commit 007ca12

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+

0 commit comments

Comments
 (0)