Skip to main content

Deploy to Netlify

This page explains how to deploy applications to Netlify using FluentCI.

Before you begin

The instructions on this page assume that you are familiar with Netlify. In addition:

Using the Netlify Plugin

You can use FluentCI to deploy applications to Netlify using the netlify plugin, no need to install Netlify CLI or Node.js on your machine, FluentCI will handle everything for you.

The following commands can be used to deploy applications to Netlify:

# Deploy to Netlify, make sure to export NETLIFY_AUTH_TOKEN, NETLIFY_SITE_ID and NETLIFY_SITE_DIR
fluentci run --wasm netlify deploy --dir $NETLIFY_SITE_DIR

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to deploy applications to Netlify:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: deploy
run: fluentci run --wasm netlify deploy --dir $NETLIFY_SITE_DIR
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ env.NETLIFY_SITE_ID }}
NETLIFY_SITE_DIR: ${{ env.NETLIFY_SITE_DIR }}