diff options
author | ashuntu <101582426+ashuntu@users.noreply.github.com> | 2023-06-29 21:15:07 -0500 |
---|---|---|
committer | ashuntu <101582426+ashuntu@users.noreply.github.com> | 2023-06-29 21:15:07 -0500 |
commit | b6e9a5495162c0ffedf99b0d96d1c4daf08c51e9 (patch) | |
tree | 545de10ed0e88aac8d95bb178fd496c5b7266346 | |
parent | 6c374f5f08ad873ae23aab057751d9defc95d12b (diff) | |
download | PrismLauncher-b6e9a5495162c0ffedf99b0d96d1c4daf08c51e9.tar.gz PrismLauncher-b6e9a5495162c0ffedf99b0d96d1c4daf08c51e9.tar.bz2 PrismLauncher-b6e9a5495162c0ffedf99b0d96d1c4daf08c51e9.zip |
Add snap github action
Signed-off-by: ashuntu <101582426+ashuntu@users.noreply.github.com>
-rw-r--r-- | .github/workflows/build.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2966abe..696acdba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -569,6 +569,31 @@ jobs: run: | ccache -s + snap: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + if: inputs.build_type == 'Debug' + uses: actions/checkout@v3 + with: + submodules: 'true' + - name: Set short version + shell: bash + if: inputs.build_type == 'Debug' + run: | + ver_short=`git rev-parse --short HEAD` + echo "VERSION=$ver_short" >> $GITHUB_ENV + - name: Package Snap (Linux) + id: snapcraft + if: inputs.build_type == 'Debug' + uses: snapcore/action-build@v1 + - name: Upload Snap (Linux) + if: inputs.build_type == 'Debug' + uses: actions/upload-artifact@v3 + with: + name: prismlauncher_${{ env.VERSION }}_amd64.snap + path: ${{ steps.snapcraft.outputs.snap }} + flatpak: runs-on: ubuntu-latest container: |