Initial commit

This commit is contained in:
Oystein Kristoffer Tveit 2025-01-19 01:02:38 +01:00
commit 4491542873
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -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