Skip to content

Latest commit

 

History

History

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

GitHub Actions for Netlify CLI

This Action enables arbitrary actions with the Netlify CLI

Secrets

Outputs

The following outputs will be available from a step that uses this action:

  • NETLIFY_OUTPUT, the full stdout from the run of the netlify command
  • NETLIFY_URL, the URL of the draft site that Netlify provides
  • NETLIFY_LOGS_URL, the URL where the logs from the deploy can be found
  • NETLIFY_LIVE_URL, the URL of the "real" site, set only if --prod was passed

See the documentation for info and examples of how to use outputs in later steps and jobs.

Example

on: push
name: Publish on Netlify
jobs:
  publish:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@master

    - name: Publish
      uses: netlify/actions/cli@master
      with:
        args: deploy --dir=site --functions=functions
      env:
        NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
        NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}