added beginning of deployment runner

This commit is contained in:
suroh 2024-02-02 15:16:07 +01:00
parent 0c2fe8a63e
commit d5c1ee51c6
1 changed files with 21 additions and 0 deletions

View File

@ -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/