Skip to content

Publish Studio Desktop for Linux in Snap Store #117

Publish Studio Desktop for Linux in Snap Store

Publish Studio Desktop for Linux in Snap Store #117

name: Publish Studio Desktop for Linux in Snap Store
on:
workflow_dispatch:
workflow_run:
workflows: [ Publish Studio Desktop ]
types:
- completed
permissions:
contents: read
jobs:
deploy-snapcraft:
name: Deploy Snap (${{ matrix.arch }})
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
strategy:
fail-fast: false
matrix:
include:
- arch: amd64
runs_on: ubuntu-latest
- arch: arm64
runs_on: ubuntu-24.04-arm
runs-on: ${{ matrix.runs_on }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Get Version
uses: mavrosxristoforos/get-xml-info@2.0
id: get-oneware-version
with:
xml-file: './build/props/Base.props'
xpath: "//*[local-name()='Project']/*[local-name()='PropertyGroup']/*[local-name()='StudioVersion']"
- name: Build Snap (${{ matrix.arch }})
uses: snapcore/action-build@v1
id: build
- name: Upload Snap (${{ matrix.arch }})
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_ONEWARE }}
with:
snap: ${{ steps.build.outputs.snap }}
release: stable