Skip to content

Commit 6e563bc

Browse files
committed
Update workflows
1 parent 82c5a63 commit 6e563bc

File tree

2 files changed

+28
-37
lines changed

2 files changed

+28
-37
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ on:
77
workflow_dispatch:
88
env:
99
DOTNET_NOLOGO: true
10+
defaults:
11+
run:
12+
shell: pwsh
1013
jobs:
1114
build:
12-
name: ${{ matrix.name }}
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
matrix:
16-
include:
17-
- os: windows-2022
18-
name: Windows
19-
- os: ubuntu-22.04
20-
name: Linux
21-
- os: macos-14
22-
name: Macos
23-
fail-fast: false
15+
name: Linux
16+
runs-on: ubuntu-22.04
2417
steps:
2518
- name: Checkout
2619
uses: actions/[email protected]
2720
- name: Setup .NET SDK
2821
uses: actions/[email protected]
2922
with:
30-
dotnet-version: 8.0.x
23+
dotnet-version: 9.0.x
3124
- name: Build
3225
run: dotnet build src --configuration Release
26+
- name: Remove executables
27+
run: |
28+
Remove-Item binaries/MonitoringDemo
29+
Remove-Item binaries/Billing/Billing
30+
Remove-Item binaries/ClientUI/ClientUI
31+
Remove-Item binaries/PlatformLauncher/PlatformLauncher
32+
Remove-Item binaries/Sales/Sales
33+
Remove-Item binaries/Shipping/Shipping
3334
- name: Publish artifacts
34-
if: matrix.name == 'Windows'
3535
uses: actions/[email protected]
3636
with:
3737
name: binaries

.github/workflows/release.yml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,46 @@ on:
33
workflow_dispatch:
44
env:
55
DOTNET_NOLOGO: true
6+
defaults:
7+
run:
8+
shell: pwsh
69
jobs:
710
release:
8-
runs-on: windows-2022
11+
runs-on: ubuntu-22.04
912
steps:
1013
- name: Checkout
1114
uses: actions/[email protected]
1215
- name: Setup .NET SDK
1316
uses: actions/[email protected]
1417
with:
15-
dotnet-version: 8.0.x
18+
dotnet-version: 9.0.x
1619
- name: Build
1720
run: dotnet build src --configuration Release
18-
- name: Install AzureSignTool
19-
run: dotnet tool install --global azuresigntool
20-
- name: Sign binaries
21+
- name: Remove executables
2122
run: |
22-
AzureSignTool sign `
23-
--file-digest sha256 `
24-
--timestamp-rfc3161 http://timestamp.digicert.com `
25-
--azure-key-vault-url https://particularcodesigning.vault.azure.net `
26-
--azure-key-vault-client-id ${{ secrets.AZURE_KEY_VAULT_CLIENT_ID }} `
27-
--azure-key-vault-tenant-id ${{ secrets.AZURE_KEY_VAULT_TENANT_ID }} `
28-
--azure-key-vault-client-secret ${{ secrets.AZURE_KEY_VAULT_CLIENT_SECRET }} `
29-
--azure-key-vault-certificate ${{ secrets.AZURE_KEY_VAULT_CERTIFICATE_NAME }} `
30-
binaries/MonitoringDemo.exe `
31-
binaries/Billing/Billing.exe `
32-
binaries/ClientUI/ClientUI.exe `
33-
binaries/Platform/Platform.exe `
34-
binaries/Sales/Sales.exe `
35-
binaries/Shipping/Shipping.exe
36-
shell: pwsh
23+
Remove-Item binaries/MonitoringDemo
24+
Remove-Item binaries/Billing/Billing
25+
Remove-Item binaries/ClientUI/ClientUI
26+
Remove-Item binaries/PlatformLauncher/PlatformLauncher
27+
Remove-Item binaries/Sales/Sales
28+
Remove-Item binaries/Shipping/Shipping
3729
- name: Setup AWS Credentials
3830
uses: aws-actions/[email protected]
3931
with:
4032
aws-access-key-id: ${{ secrets.AWS_ACCESSKEY }}
4133
aws-secret-access-key: ${{ secrets.AWS_SECRETKEY }}
4234
aws-region: us-east-1
4335
- name: Deploy to S3
44-
shell: pwsh
36+
shell: bash
4537
run: |
4638
echo "Creating Particular.MonitoringDemo.zip archive"
47-
Compress-Archive -Path ./binaries/* -DestinationPath ./Particular.MonitoringDemo.zip
39+
(cd binaries && zip -r "$OLDPWD/Particular.MonitoringDemo.zip" .)
4840
4941
echo "Uploading zip file to AWS"
5042
aws s3 cp ./Particular.MonitoringDemo.zip s3://particular.downloads/MonitoringDemo/Particular.MonitoringDemo.zip --content-type application/zip --acl public-read
5143
5244
echo "Complete"
5345
- name: Upload dependency file to AWS
54-
shell: pwsh
5546
run: |
5647
$dotnetPackages = dotnet list src/Platform package --include-transitive --format json | ConvertFrom-Json
5748
$firstProject = $dotnetPackages.projects[0]

0 commit comments

Comments
 (0)