Skip to content

Merge pull request #5 from Chao-Ma5566/feat-add-github-action #2

Merge pull request #5 from Chao-Ma5566/feat-add-github-action

Merge pull request #5 from Chao-Ma5566/feat-add-github-action #2

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Deploy to Render
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Deploy to Render
uses: bounceapp/[email protected]
with:
render-token: ${{ secrets.RENDER_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Notify deployment status
if: success()
run: echo "Deployment to Render successful!"