Skip to content

Commit

Permalink
testing updated github workflow 4
Browse files Browse the repository at this point in the history
  • Loading branch information
harivyasi committed Aug 7, 2023
1 parent 16c6e2c commit e0e03a1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,19 @@ jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/checkout@v3

- uses: actions/cache@v2
- uses: actions/setup-node@v3
with:
path: build
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
cache: "npm"

- name: build
- name: Build
id: build
run: |
npm install
npm run build --if-present
- name: deploy
- name: Deploy
if: steps.build.outcome == 'success' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'skip deploy')
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
Expand Down

0 comments on commit e0e03a1

Please sign in to comment.