Deploy a static site build to Netlify using the file digest API.
Find a file
2026-04-04 17:38:39 +02:00
.forgejo/workflows ci: Update major tag with tags 2026-04-04 16:55:36 +02:00
action.yml feat: Create action on top of Netlify's file digest API method 2026-04-04 16:53:14 +02:00
LICENSE Initial commit 2026-04-04 16:35:36 +02:00
netlify_digest_deploy.py feat: Create action on top of Netlify's file digest API method 2026-04-04 16:53:14 +02:00
README.md docs: Add protocol to GH Action docs for clarity 2026-04-04 17:38:39 +02:00

Netlify Digest Deploy Action

Reusable GitHub Action that uploads a built directory to Netlify using the file digest deploy API.

Inputs

  • site-id (required): Netlify Site ID
  • auth-token (required): Netlify Personal Access Token
  • publish-dir (optional, default: dist): Directory with built files

Outputs

  • deploy-id: Netlify deploy ID
  • deploy-url: Final deploy URL once ready

Usage

name: Deploy

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Build
        run: |
          npm ci
          npm run build

      - name: Deploy to Netlify
        uses: https://git.marut.network/majikode/netlify-digest-deploy@v1
        with:
          site-id: ${{ secrets.NETLIFY_SITE_ID }}
          auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
          publish-dir: dist

      - name: Show deploy URL
        run: echo "${{ steps.netlify.outputs.deploy-url }}"

License

The scripts and documentation in this project are released under the MIT License.