Publish Studio Desktop for Linux in Snap Store #11
This file contains 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: | |
# Build Snap and upload to Snap Store | |
deploy-snapcraft: | |
name: Deploy for Snap Store | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: mavrosxristoforos/[email protected] | |
name: Get Version | |
id: get-oneware-version | |
with: | |
xml-file: './build/props/Base.props' | |
xpath: "//*[local-name()='Project']/*[local-name()='PropertyGroup']/*[local-name()='StudioVersion']" | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build Snap | |
uses: snapcore/action-build@v1 | |
id: build | |
- name: Upload Snap | |
uses: snapcore/action-publish@v1 | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_ONEWARE }} | |
with: | |
snap: ${{ steps.build.outputs.snap }} | |
release: stable |