diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml new file mode 100644 index 00000000..5c4243d3 --- /dev/null +++ b/.github/workflows/dev.yml @@ -0,0 +1,37 @@ +name: Build, Test, and Deploy for Dev Branch + +on: + push: + branch: + - dev + +jobs: + build: + runs-on: self hosted + defaults: + run: + working-directory: /var/www/aihomework/dev + + steps: + - name: Pull from github + id: pull + run: | + git pull origin dev + - name: install dependencies + run: yarn install + - name: buld the dist + run: yarn build + + + # test: + # -name: Run test + # run: yarn jest + + # deploy: + # runs-on: self-hosted + # needs: build + # if: github.ref == 'refs/heads/dev' + + # steps: + # - name: Install dependencies + # run: yarn install