Skip to content

Commit 27556a4

Browse files
authored
housekeeping: Update CI-Build not to release
1 parent 4dfbaed commit 27556a4

File tree

1 file changed

+7
-55
lines changed

1 file changed

+7
-55
lines changed

.github/workflows/ci-build.yml

Lines changed: 7 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: Build and Release
1+
name: Build
22

33
on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
types: [opened, synchronize, reopened, closed]
87
branches: [ main ]
98

109
env:
@@ -13,7 +12,7 @@ env:
1312

1413
jobs:
1514
build:
16-
runs-on: windows-latest
15+
runs-on: windows-2022
1716
outputs:
1817
nbgv: ${{ steps.nbgv.outputs.SemVer2 }}
1918
steps:
@@ -33,9 +32,11 @@ jobs:
3332
with:
3433
dotnet-version: 5.0.x
3534

36-
# - name: Update VS2019
37-
# shell: powershell
38-
# run: Start-Process -Wait -PassThru -FilePath "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" -ArgumentList "update --passive --norestart --installpath ""C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"""
35+
- name: Install .NET 6
36+
uses: actions/setup-dotnet@v1.8.2
37+
with:
38+
dotnet-version: 6.0.x
39+
include-prerelease: true
3940

4041
- name: NBGV
4142
id: nbgv
@@ -79,52 +80,3 @@ jobs:
7980
with:
8081
name: nuget
8182
path: '**/*.nupkg'
82-
83-
release:
84-
runs-on: windows-latest
85-
needs: build
86-
if: contains(github.event.pull_request.labels.*.name, 'release') && github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
87-
steps:
88-
- name: Checkout
89-
uses: actions/checkout@v2.3.4
90-
with:
91-
fetch-depth: 0
92-
93-
- name: Download NuGet Packages
94-
uses: actions/download-artifact@v2.0.10
95-
with:
96-
name: nuget
97-
98-
- uses: nuget/setup-nuget@v1
99-
name: Setup NuGet
100-
101-
# Decode the base 64 encoded pfx and save the Signing_Certificate
102-
- name: Sign NuGet packages
103-
shell: pwsh
104-
run: |
105-
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.SIGNING_CERTIFICATE }}")
106-
[IO.File]::WriteAllBytes("GitHubActionsWorkflow.pfx", $pfx_cert_byte)
107-
$secure_password = ConvertTo-SecureString ${{ secrets.SIGN_CERTIFICATE_PASSWORD }} –asplaintext –force
108-
Import-PfxCertificate -FilePath GitHubActionsWorkflow.pfx -Password $secure_password -CertStoreLocation Cert:\CurrentUser\My
109-
nuget sign -Timestamper http://timestamp.digicert.com -CertificateFingerprint ${{ secrets.SIGN_CERTIFICATE_HASH }} **/*.nupkg
110-
111-
- name: Changelog
112-
uses: glennawatson/ChangeLog@v1
113-
id: changelog
114-
115-
- name: Create Release
116-
uses: actions/create-release@v1.1.4
117-
env:
118-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
119-
with:
120-
tag_name: ${{ needs.build.outputs.nbgv }}
121-
release_name: ${{ needs.build.outputs.nbgv }}
122-
body: |
123-
${{ steps.changelog.outputs.commitLog }}
124-
125-
- name: NuGet Push
126-
env:
127-
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
128-
SOURCE_URL: https://api.nuget.org/v3/index.json
129-
run: |
130-
dotnet nuget push -s ${{ env.SOURCE_URL }} -k ${{ env.NUGET_AUTH_TOKEN }} **/*.nupkg

0 commit comments

Comments
 (0)