Add snap build support
Add the ability to build and publish a snap package to the snapcraft.io store to be able to publish the PSM project to Linux platforms.
This commit is contained in:
Родитель
733fc69672
Коммит
955032b35e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче