Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyferion authored Mar 14, 2024
1 parent 3e3dbb9 commit 61a0e12
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to OZ on Push or Merge to Main

on:
push:
branches:
- dev
pull_request:
types: [closed]
branches:
- dev

jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Run deploy to OZ script
run: node deploy.js

0 comments on commit 61a0e12

Please sign in to comment.