Initial workflow setup #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |