From eafa4849765990f9c3829c2a67076b482d08898b Mon Sep 17 00:00:00 2001 From: Lukas Martini Date: Mon, 13 Nov 2023 18:53:50 +0100 Subject: [PATCH] Kernel workflow: Automatically upload built package --- .github/workflows/kernel.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml index 1db9f176..6aedea39 100644 --- a/.github/workflows/kernel.yml +++ b/.github/workflows/kernel.yml @@ -37,11 +37,11 @@ jobs: - name: 'Create package directory' run: 'mkdir kernel-pkg' - - name: 'Move stuff around' - run: 'mv *.pkg.* kernel-pkg' - - - name: Upload package as artifact - uses: actions/upload-artifact@v3 - with: - name: kernel-pkg - path: kernel-pkg + - name: Import SSH key + run: 'mkdir .ssh; echo "${{ secrets.SSH_KEY }}" > .ssh/id_ed25519 && chmod 600 .ssh/id_ed25519' + + - name: Upload to repo server + run: rsync *.pkg.tar.gz* repoupload@pkgs.xelix.org:/var/www/pkgs.xelix.org/core/i786/ + + - name: Update repository + run: ssh repoupload@pkgs.xelix.org /usr/local/bin/repo-remote-update core i786 xelix-kernel *.pkg.tar.gz