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:
Elliot Huffman 2022-04-23 13:06:14 -04:00 коммит произвёл GitHub
Родитель 733fc69672
Коммит 955032b35e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 30 добавлений и 0 удалений

30
.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