Skip to content

Merge pull request #1 from dennikolova/create-deploy-workflow #2

Merge pull request #1 from dennikolova/create-deploy-workflow

Merge pull request #1 from dennikolova/create-deploy-workflow #2

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
deploy:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Deploy to production
uses: johnbeynon/render-deploy-action@v0.0.8
with:
service-id: ${{ secrets.LibraryServiceID }}
api-key: ${{ secrets.LibraryAppKey }}