From 321e53be5b2c2628cebcda2ddbaee7d9fe4d60b9 Mon Sep 17 00:00:00 2001 From: edraft Date: Sun, 22 Feb 2026 00:18:35 +0100 Subject: [PATCH] Added prod build [skip-ci] --- .gitea/workflows/build.yaml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..4efcc23 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,45 @@ +name: Build on push +run-name: Build on push +on: + push: + branches: + - master + +jobs: + prepare: + runs-on: [runner] + container: git.sh-edraft.de/sh-edraft.de/act-runner:latest + steps: + - uses: https://git.sh-edraft.de/sh-edraft.de/actions/set-version@master + env: + CI_ACCESS_TOKEN: ${{ secrets.CI_ACCESS_TOKEN }} + + build: + runs-on: [runner] + needs: prepare + container: git.sh-edraft.de/sh-edraft.de/act-runner:latest + steps: + - name: Clone Repository + uses: https://github.com/actions/checkout@v3 + with: + token: ${{ secrets.CI_ACCESS_TOKEN }} + + - name: Download build version artifact + uses: actions/download-artifact@v3 + with: + name: version + + - name: Build single file executables + run: | + cd sh.actions.package-cleanup + + # Build for Linux x64 + dotnet publish -c Release -r linux-x64 -p:Version=$(cat ../version.txt) -o publish/linux-x64 + + - name: Upload to Gitea Generic Package Registry + run: | + cd sh.actions.package-cleanup + curl -X PUT \ + -H "Authorization: token ${{ secrets.CI_ACCESS_TOKEN }}" \ + -T publish/linux-x64/sh.actions.package-cleanup \ + "https://git.sh-edraft.de/api/packages/sh-edraft.de/generic/package-cleanup/$(cat ../version.txt)/package-cleanup-linux-x64"