Skip to main content

Netlify

Run the following command to run the pre-built Netlify Pipeline in your project to deploy your application to Netlify:

fluentci run netlify deploy

Environment variables

VariableDescription
NETLIFY_AUTH_TOKENYour Netlify Access Token
NETLIFY_SITE_IDYour Netlify Site ID
NETLIFY_SITE_DIRYour directory to deploy (default: .)

Jobs

JobDescription
deployDeploys your application to Netlify.

Programmatic usage

You can also use this pipeline programmatically:

import { build, deploy } from "jsr:@fluentci/netlify";

await build();
await deploy();

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 }}