Publish Studio Desktop for Linux in Snap Store #91
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Studio Desktop for Linux in Snap Store | |
| on: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: [ Publish Studio Desktop ] | |
| types: | |
| - completed | |
| 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 |