From ed51e2c9fbc7b9301928e85e254c11fadb92eb74 Mon Sep 17 00:00:00 2001 From: gue-ni Date: Sun, 5 Oct 2025 21:52:35 +0200 Subject: [PATCH] fix ci --- .github/workflows/build.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0caf4b9..a15cb01 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,14 +31,19 @@ jobs: working-directory: ${{github.workspace}} run: ./build/tests/tests --gtest_print_time - - name: Run Lisp scripts + - name: Run Lisp Scripts run: | for file in ${{ github.workspace }}/tests/programs/*.lsp; do echo "Executing $file" time ${{ github.workspace }}/build/src/lisp $file done - - name: Build bundle + release: + runs-on: ubuntu-latest + needs: build + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + steps: + - name: Bundle Release run: | mkdir -p ${{ github.workspace }}/release cp -v ${{ github.workspace }}/build/src/lisp ${{ github.workspace }}/release/ @@ -47,12 +52,12 @@ jobs: pwd ls -la - - name: Publish + - name: Publish Relase uses: appleboy/scp-action@master with: - host: ${{ secrets.HOST }} username: ${{ secrets.USER }} - key: ${{ secrets.KEY }} + host: ${{ secrets.HOST }} port: ${{ secrets.PORT }} + key: ${{ secrets.KEY }} source: "lisp-linux-amd64.tar.gz" target: "/var/www/files/lisp/release/latest"