|
3 | 3 | workflow_dispatch: |
4 | 4 | env: |
5 | 5 | DOTNET_NOLOGO: true |
| 6 | +defaults: |
| 7 | + run: |
| 8 | + shell: pwsh |
6 | 9 | jobs: |
7 | 10 | release: |
8 | | - runs-on: windows-2022 |
| 11 | + runs-on: ubuntu-22.04 |
9 | 12 | steps: |
10 | 13 | - name: Checkout |
11 | 14 | |
12 | 15 | - name: Setup .NET SDK |
13 | 16 | |
14 | 17 | with: |
15 | | - dotnet-version: 8.0.x |
| 18 | + dotnet-version: 9.0.x |
16 | 19 | - name: Build |
17 | 20 | 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 |
21 | 22 | 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 |
37 | 29 | - name: Setup AWS Credentials |
38 | 30 | uses: aws-actions/[email protected] |
39 | 31 | with: |
40 | 32 | aws-access-key-id: ${{ secrets.AWS_ACCESSKEY }} |
41 | 33 | aws-secret-access-key: ${{ secrets.AWS_SECRETKEY }} |
42 | 34 | aws-region: us-east-1 |
43 | 35 | - name: Deploy to S3 |
44 | | - shell: pwsh |
| 36 | + shell: bash |
45 | 37 | run: | |
46 | 38 | echo "Creating Particular.MonitoringDemo.zip archive" |
47 | | - Compress-Archive -Path ./binaries/* -DestinationPath ./Particular.MonitoringDemo.zip |
| 39 | + (cd binaries && zip -r "$OLDPWD/Particular.MonitoringDemo.zip" .) |
48 | 40 |
|
49 | 41 | echo "Uploading zip file to AWS" |
50 | 42 | aws s3 cp ./Particular.MonitoringDemo.zip s3://particular.downloads/MonitoringDemo/Particular.MonitoringDemo.zip --content-type application/zip --acl public-read |
51 | 43 |
|
52 | 44 | echo "Complete" |
53 | 45 | - name: Upload dependency file to AWS |
54 | | - shell: pwsh |
55 | 46 | run: | |
56 | 47 | $dotnetPackages = dotnet list src/Platform package --include-transitive --format json | ConvertFrom-Json |
57 | 48 | $firstProject = $dotnetPackages.projects[0] |
|
0 commit comments