Skip to content

.github/workflows/publish.yaml #33

.github/workflows/publish.yaml

.github/workflows/publish.yaml #33

Workflow file for this run

on:
push:
branches:
- '[0-9]/[a-z]+'
workflow_call:
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yaml
publish:
name: Publish Snap
runs-on: [self-hosted, linux, X64, jammy, large]
needs: build
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: snap-artifact
- id: get-snap-name
run: echo "SNAP_FILE=$(ls *.snap)" >> $GITHUB_OUTPUT
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.get-snap-name.outputs.SNAP_FILE }}
release: 6/edge/use-snap-config-for-services