Skip to content

Commit

Permalink
updated the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kalio007 committed Jul 19, 2024
1 parent 5f2be12 commit 782304f
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ on:
jobs:
build:
runs-on: self hosted
defaults:
run:
working-directory: /var/www/aihomework/dev

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Pull from github
id: pull
run: |
git pull origin dev
- name: install dependencies
run: yarn install
- name: buld the dist
Expand All @@ -22,14 +27,11 @@ jobs:
# -name: Run test
# run: yarn jest

deploy:
runs-on: self-hosted
needs: build
if: github.ref == 'refs/heads/dev'
# deploy:
# runs-on: self-hosted
# needs: build
# if: github.ref == 'refs/heads/dev'

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: yarn install
# steps:
# - name: Install dependencies
# run: yarn install

0 comments on commit 782304f

Please sign in to comment.