Files
gitea-package-publishing-test/.gitea/workflows/publish.yml
h7x4 9654034dbb
All checks were successful
publish-deb / build (push) Successful in 18s
Rename secret
2025-02-08 21:13:18 +01:00

24 lines
597 B
YAML

name: "publish-deb"
on:
push:
branches:
- main
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.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