From fc27159c4635130d9bdd39d6a2fac008bc6bd40a Mon Sep 17 00:00:00 2001 From: h7x4 <h7x4@nani.wtf> Date: Mon, 12 May 2025 13:21:27 +0200 Subject: [PATCH] WIP: add pipeline for publishing debs --- .gitea/workflows/publish-deb.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/publish-deb.yml diff --git a/.gitea/workflows/publish-deb.yml b/.gitea/workflows/publish-deb.yml new file mode 100644 index 0000000..48dd603 --- /dev/null +++ b/.gitea/workflows/publish-deb.yml @@ -0,0 +1,32 @@ +name: "publish-deb" +on: + workflow_dispatch: + inputs: + version: + description: "Version to publish" + required: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Install cargo-deb + run: cargo install cargo-deb + + - name: Build deb package + run: ./create-deb.sh + + - name: Publish deb package + run: | + curl \ + --user your_username:your_password_or_token \ + --upload-file target/debian/*.deb \ + https://git.pvv.ntnu.no/api/packages/testuser/debian/pool/bionic/main/upload