edouard@80: name: Build Snap edouard@80: edouard@80: on: edouard@80: workflow_dispatch: edouard@80: # push: edouard@80: # branches: [ default ] edouard@80: edouard@80: jobs: edouard@80: sources: edouard@80: uses: ./.github/workflows/prep_sources.yml edouard@80: edouard@80: build: edouard@80: needs: sources edouard@80: runs-on: ubuntu-latest edouard@80: edouard@80: steps: edouard@80: edouard@88: - name: Download source artifact edouard@88: uses: actions/download-artifact@v3 edouard@88: with: edouard@88: name: source_package edouard@97: edouard@97: - name: untar files edouard@99: run: tar -xvf sources.tar edouard@88: edouard@98: - name: Move snap dir and revisions.txt in build/sources edouard@90: run: | edouard@90: mv beremiz_public_dist/snap build/sources edouard@98: mv build/revisions.txt build/sources/revisions.txt edouard@90: edouard@80: - name: Invoke snapcraft build edouard@80: uses: snapcore/action-build@v1 edouard@80: id: snapcraft edouard@80: with: edouard@80: path: build/sources edouard@80: edouard@80: - name: Upload built artifact edouard@80: uses: actions/upload-artifact@v3 edouard@80: with: edouard@80: name: snap edouard@80: path: ${{ steps.snapcraft.outputs.snap }} edouard@80: edouard@80: