generated from 01Barthez/start-react-projet
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 927 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI-CD pipeline - React-Starter
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js and install dependancies
uses: ./.github/actions/setup-node
- name: continuous Integration
env:
HOST: ${{ secrets.HOST }}
PORT: ${{ secrets.PORT }}
run: yarn ci
- name: Create new tag
# uses: ./.github/actions/create-tag
# with:
# GH_PAT: ${{ secrets.GH_PAT }}
run: echo "create tag process skipped... !"
- name: Deploy to render
uses: ./.github/actions/deploy-render
with:
RENDER_API_KEY: ${{ secrets.RENDER_API_KEY }}
RENDER_SERVICE_ID: ${{ secrets.RENDER_SERVICE_ID }}
- name: Send success message
run: echo "All done successfully! 🚀"