Skip to content

Commit

Permalink
Merge pull request #97 from steniowagner/chore/ci-deploy
Browse files Browse the repository at this point in the history
chore: deploying server to Render in the CI
  • Loading branch information
steniowagner authored Feb 18, 2024
2 parents 09a6c22 + 4bd224d commit 4447878
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@ on:
branches: [master, development]

jobs:
build:
code_check:
name: Code Check
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 18

- name: Installing Dependencies
run: npm install
Expand All @@ -33,3 +31,16 @@ jobs:

- name: Building
run: npm run build

deploy:
name: Deploy to production
if: success() && github.ref == 'refs/heads/master'
needs: [code_check]
runs-on: ubuntu-latest

steps:
- name: Deploy to production
uses: johnbeynon/[email protected]
with:
service-id: ${{ secrets.SERVICE_ID }}
api-key: ${{ secrets.RENDER_API_KEY }}

0 comments on commit 4447878

Please sign in to comment.