Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Merge Workflows
Browse files Browse the repository at this point in the history
Merge separate workflows to a unified workflow. This fixes artifact access issues.
  • Loading branch information
elliot-huffman committed Apr 13, 2022
1 parent 7c45f7b commit 4c55dde
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 73 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/Authenticode-Sign.yml

This file was deleted.

57 changes: 55 additions & 2 deletions .github/workflows/Build-Binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Package-Bins:
Generate-Bins:
# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand Down Expand Up @@ -67,3 +66,57 @@ jobs:
with:
name: LinuxRawBin
path: Server/dist/privileged-security-management-server-linux

Authenticode-Sign:
# This job can't procede if the EXE isn't present to sign
needs: Generate-Bins

# The type of runner that the job will run on
runs-on: windows-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Download the Windows Raw un-packaged exe Artifact
uses: actions/download-artifact@v2
with:
# Artifact name
name: WindowsRawExe
# Destination path
path: Downloads

# Runs a single command using the runners shell
- name: Set up .Net CLI
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"

# Install the Azure Sign Tool for authenticode signing
- name: Install Azure Sign Tool
run: dotnet tool install AzureSignTool

Package-WindowsInstallers:
# This job can't procede if the EXE hasn't been generated or signed
needs: [Generate-Bins, Authenticode-Sign]

# The type of runner that the job will run on
runs-on: windows-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Download project
uses: actions/checkout@v2

- name: Download EXE
uses: actions/download-artifact@v3
with:
name: WindowsRawExe
path: Server/dist/

- name: Build MSI
uses: Caphyon/advinst-github-action@v1.0
with:
advinst-version: '19.3'
advinst-license: ${{ secrets.ADVANCEDINSTALLER_KEY }}
advinst-enable-automation: 'false'
aip-path: 'Privileged Security Management.aip'
aip-build-name: 'MSI'
36 changes: 0 additions & 36 deletions .github/workflows/Build-MSI.yml

This file was deleted.

0 comments on commit 4c55dde

Please sign in to comment.