diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 644d587..d24b5d4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 @@ -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/render-deploy-action@v0.0.8 + with: + service-id: ${{ secrets.SERVICE_ID }} + api-key: ${{ secrets.RENDER_API_KEY }}