Deploy a static site build to Netlify using the file digest API.
- Python 100%
| .forgejo/workflows | ||
| action.yml | ||
| LICENSE | ||
| netlify_digest_deploy.py | ||
| README.md | ||
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 IDauth-token(required): Netlify Personal Access Tokenpublish-dir(optional, default:dist): Directory with built files
Outputs
deploy-id: Netlify deploy IDdeploy-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.