diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-11-05 11:09:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 11:09:51 +0100 |
commit | 695734636f9c8668d447edce24dc1b0e3dd00214 (patch) | |
tree | 8c060602834034ad4c4a4a7f49f0820c62fc8beb /.github | |
parent | 5e9b26dbef1c7cf917af17585c4282f58fc5eaef (diff) | |
parent | bdac2a5f4d8b3a87a103fb008b9e790671c0b930 (diff) | |
download | PrismLauncher-695734636f9c8668d447edce24dc1b0e3dd00214.tar.gz PrismLauncher-695734636f9c8668d447edce24dc1b0e3dd00214.tar.bz2 PrismLauncher-695734636f9c8668d447edce24dc1b0e3dd00214.zip |
Merge pull request #294 from piperswe/add-snapcraft-yml
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3cf99760..3225cf1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -496,5 +496,25 @@ jobs: with: name: PrismLauncher-${{ runner.os }}-${{ env.VERSION }}-${{ inputs.build_type }}-x86_64.AppImage path: PrismLauncher-${{ runner.os }}-${{ env.VERSION }}-${{ inputs.build_type }}-x86_64.AppImage - - + snap: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: 'true' + - name: Set short version + shell: bash + run: | + ver_short=`git rev-parse --short HEAD` + echo "VERSION=$ver_short" >> $GITHUB_ENV + - name: Package Snap (Linux) + id: snapcraft + if: runner.os == 'Linux' && matrix.qt_ver != 5 + uses: snapcore/action-build@v1 + - name: Upload Snap (Linux) + if: runner.os == 'Linux' && matrix.qt_ver != 5 + uses: actions/upload-artifact@v3 + with: + name: prismlauncher_${{ env.VERSION }}_amd64.snap + path: ${{ steps.snapcraft.outputs.snap }} |