Skip to content

3.14.3

3.14.3 #77

Workflow file for this run

name: snap_core22
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
outputs:
snap-file: ${{ steps.build-snap22.outputs.snap }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
# full history for latest tag name
fetch-depth: 0
- name: Rename snap_core22 to snap
run: mv snap_core22 snap
- name: Build Snap (Core22)
uses: snapcore/action-build@v1
with:
snapcraft-channel: 7.x/stable
id: build-snap22
# Make sure the snap is installable
- name: Install snap
run: |
sudo snap install --dangerous ${{ steps.build-snap22.outputs.snap }}
- uses: actions/upload-artifact@v5
with:
name: plotjuggler-snap22
path: ${{ steps.build-snap22.outputs.snap }}
publish:
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v6
with:
name: plotjuggler-snap22
path: .
- name: Publish snap
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{needs.build.outputs.snap-file}}
release: humble/${{ startsWith(github.ref, 'refs/tags/') && 'candidate' || 'edge'}}