diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 34d9d13..92be602 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -112,3 +112,20 @@ jobs: URL: 'https://github.com/prql/prql-query/archive/${{ github.ref }}.tar.gz' } }) + + build-and-publish-snap: + runs-on: ubuntu-latest + steps: + - name: 📂 Checkout code + uses: actions/checkout@v4 + - name: 📦 Build Snap + id: build + uses: snapcore/action-build@v1 + #- name: 🆙 Publish Snap + # uses: snapcore/action-publish@v1 + # env: + # SNAPCRAFT_STORE_CREDENTIALS: + # ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + # with: + # snap: ${{ steps.build.outputs.snap }} + # release: edge diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..59f5c39 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,30 @@ +name: prql-query +title: pq +base: core22 +version: git +summary: Query and transform data with PRQL +description: | + pq allows you to use PRQL to easily query and transform your data. + + It is powered by Apache Arrow DataFusion and DuckDB and is written in Rust (so it's "blazingly fast" ™)! +issues: https://github.com/PRQL/prql-query/issues +source-code: https://github.com/PRQL/prql-query +contact: https://twitter.com/prql_lang +website: https://prql-lang.org/ +license: MIT +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: strict +#icon: icon.svg + +parts: + prql-query: + plugin: rust + source: . + build-packages: [cargo] + rust-path: [crates/prql-query] + +apps: + prql-query: + command: bin/pq + plugs: + - home