From 21355ac913717e839f3a357f47b983b46d92af34 Mon Sep 17 00:00:00 2001 From: Morph01 <145839520+Morph01@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:35:34 +0100 Subject: [PATCH] feat: add pipeline --- .gitea/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..eaa1d74 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,30 @@ +name: Linux arm64 +run-name: Build App + +on: [push] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Build + run: | + npm ci + npm run build + + - uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.SSH_KEY }} + + + - uses: actions/upload-artifact@v3 + with: + name: Release Build + path: ${{ github.workspace }}/build + + - name: Deploy + run: | + scp -r build ubuntu@git.ale-pri.com:Sites/Portfolio \ No newline at end of file