summaryrefslogtreecommitdiffstats
path: root/.github/workflows/snap.yml
blob: 4c6aded95e44a0c927bc8c840a2b2623fc1f8b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Snap
on:
  workflow_dispatch:
    inputs:
      retention:
        description: Retention Days
        default: 1
        required: true

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: snapcore/action-build@v1
      id: snapcraft
    - uses: actions/upload-artifact@v4
      with:
        name: snap
        path: ${{ steps.snapcraft.outputs.snap }}
        retention-days: ${{ github.event.inputs.retention || 1 }}