diff --git a/.github/workflows/build-publish-snap.yaml b/.github/workflows/build-publish-snap.yaml new file mode 100644 index 0000000..4e03fd2 --- /dev/null +++ b/.github/workflows/build-publish-snap.yaml @@ -0,0 +1,28 @@ +name: Build & Publish Snap + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build-publish-snap: + runs-on: ubuntu-latest + + steps: + - name: checkout git repository + uses: actions/checkout@v6 + + - name: Build the snap + uses: snapcore/action-build@v1 + with: + snapcraft-channel: 8.x/stable + + - name: Publish the snap + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + run: snapcraft upload wick_*.snap --release=edge diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..a9d09d4 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,26 @@ +name: wick +base: core24 +version: git +summary: WAMP in Command-line +description: | + WAMP in Command-line + +grade: stable +confinement: strict +compression: lzo + +parts: + wick: + plugin: rust + source: . + build-packages: + - pkg-config + - libssl-dev + +apps: + wick: + command: bin/wcli + plugs: + - network + - network-bind + - home