.github/workflows/build_snap.yml
changeset 80 1088ce57d3c9
child 88 58cff3acaf3d
equal deleted inserted replaced
79:a8b434605895 80:1088ce57d3c9
       
     1 name: Build Snap
       
     2 
       
     3 on:
       
     4   workflow_dispatch:
       
     5   # push:
       
     6   #   branches: [ default ]
       
     7 
       
     8 jobs:
       
     9   sources:
       
    10     uses: ./.github/workflows/prep_sources.yml
       
    11 
       
    12   build:
       
    13     needs: sources
       
    14     runs-on: ubuntu-latest
       
    15 
       
    16     steps:
       
    17     - name: Download source artifact
       
    18       uses: actions/download-artifact@v3
       
    19       with:
       
    20         name: source_package
       
    21 
       
    22     - uses: actions/checkout@v3
       
    23       with:
       
    24         # checkout directly in build/sources so that
       
    25         # sources dirs are aside snap dir
       
    26         path: build/sources
       
    27 
       
    28     - name: Invoke snapcraft build
       
    29       uses: snapcore/action-build@v1
       
    30       id: snapcraft
       
    31       with:
       
    32         path: build/sources
       
    33 
       
    34     - name: Upload built artifact
       
    35       uses: actions/upload-artifact@v3
       
    36       with:
       
    37         name: snap
       
    38         path: ${{ steps.snapcraft.outputs.snap }}
       
    39 
       
    40