2024-06-26 15:58:14 +03:00
|
|
|
name: Gitea Actions Demo
|
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
2023-07-30 11:33:52 +03:00
|
|
|
on: [push]
|
2024-06-26 15:58:14 +03:00
|
|
|
|
2023-07-30 11:33:52 +03:00
|
|
|
jobs:
|
2024-06-26 15:58:14 +03:00
|
|
|
Explore-Gitea-Actions:
|
2024-06-27 12:41:34 +03:00
|
|
|
runs-on: tcl-tk-builder
|
2023-07-30 11:33:52 +03:00
|
|
|
steps:
|
2024-06-27 12:43:20 +03:00
|
|
|
- name: Build the packages
|
2024-06-26 15:58:14 +03:00
|
|
|
run: |
|
2024-06-27 12:52:10 +03:00
|
|
|
git clone ${{ vars.main_url }}${{ gitea.repository }}
|
2024-06-26 16:12:16 +03:00
|
|
|
pwd
|
2024-06-27 12:41:34 +03:00
|
|
|
cd projman/debian
|
2024-06-27 12:53:09 +03:00
|
|
|
./build-deb-projman.sh
|
2024-06-27 13:10:23 +03:00
|
|
|
cd ../../
|
2024-06-27 13:29:10 +03:00
|
|
|
curl --user ${{ vars.user}}:${{vars.api_token}} --upload-file "$(ls -1| grep projman | grep -E 'deb$')" ${{vars.main_url}}api/packages/${{vars.user}}/debian/pool/bookworm/main/upload
|
2024-06-27 14:44:47 +03:00
|
|
|
- run: echo "This job's status is ${{ job.status }}."
|