From 44915428730220238c142e72b73d7d8a9bbd4d23 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 19 Jan 2025 01:02:38 +0100 Subject: [PATCH] Initial commit --- .gitea/workflows/publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/publish.yml diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 0000000..19b5d1d --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,25 @@ +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: Create package + run: | + echo "Hello world!" > hello_world.txt + tar cvzf hello_world.tar.gz hello_world.txt + + - name: Publish package + run: | + curl --user oysteikt:${{ secrets.GITEA_PUBLISH_TOKEN }} \ + --upload-file hello_world.tar.gz \ + https://git.pvv.ntnu.no/api/packages/oysteikt/generic/gitea-package-publishing-test/${{ vars.VERSION }}/hello_world.tar.gz +