diff --git a/.github/workflows/Build-Binaries.yml b/.github/workflows/Build-Binaries.yml index 5b93e63..6bae0c9 100644 --- a/.github/workflows/Build-Binaries.yml +++ b/.github/workflows/Build-Binaries.yml @@ -66,6 +66,36 @@ jobs: with: name: LinuxRawBin path: Server/dist/privileged-security-management-server-linux + Build-And-Publish-Snap: + # Ensure that the binaries are generated before executing this part of the build process. + needs: Generate-Bins + + # Run the snap build command on the latest Ubuntu OS available + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Download the project's current source code + - name: Download project + uses: actions/checkout@v2 + + # Grab the bin file that was just generated by the BIN Build step + - name: Download Linux Bin + uses: actions/download-artifact@v3 + with: + name: LinuxRawBin + path: Server/dist/ + + # Package the snap packaged based on the snapcraft.yaml file in the root of the source code repo + - name: Build Snap Package + uses: snapcore/action-build@v1 + + # Upload the built snap package to the store in edge mode + - uses: snapcore/action-publish@v1 + with: + store_login: ${{ secrets.SNAP_STORE_EDGE_LOGIN }} + snap: ${{ steps.build.outputs.snap }} + release: edge Authenticode-Sign: # This job can't procede if the EXE isn't present to sign