Skip to content

Version 24.5.0.10342 #100

Version 24.5.0.10342

Version 24.5.0.10342 #100

Workflow file for this run

name: Build snap package
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: 'smplayer-dev/snap-builds'
- name: Build snap
id: snapcraft
uses: snapcore/action-build@v1
with:
path: smplayer/core22
- name: Create artifact
#if: github.event_name != 'release'
if: ${{false}}
uses: actions/upload-artifact@v4
with:
name: smplayer-snap
path: ${{ steps.snapcraft.outputs.snap }}
- name: Publish
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{steps.snapcraft.outputs.snap }}
release: edge
- name: Upload package to release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.snapcraft.outputs.snap }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true