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