From d5c1ee51c61ad1a896c767658bebf23eafd64a1f Mon Sep 17 00:00:00 2001 From: suroh Date: Fri, 2 Feb 2024 15:16:07 +0100 Subject: [PATCH] added beginning of deployment runner --- .gitea/workflows/deploy.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..70bca14 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,21 @@ +name: work.suroh.tk deploy +run-name: ${{ github.action_repository }} is being built and deployed +on: + push: + branches: + - 'main' +jobs: + build-deploy: + runs-on: ubuntu-latest + steps: + - name: Clone code to runner + uses: actions/checkout@v4 + + - name: Move to directory + run: cd ${{ github.workspace }} + + - name: Building dependencies + run: npm ci + + - name: Check deployment directory + run: ls -lh /var/www/