I’m using Netlify for builds and deployments in my GitHub Runners. I’ve created a token in Netlify, and I’m using it like this:
- name: Build docs
run: cd packages/docs && bun run build:docs
- name: Install Netlify CLI
run: bun add -g netlify-cli
- name: Deploy to Netlify
run: |
cd packages/docs
netlify deploy --dir=build --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Even with the token passed through the GitHub UI, it’s still asking me to log in to confirm. How can I avoid this manual step?
Run cd packages/docs
Logging into your Netlify account...
Opening https://app.netlify.com/authorize?response_type=ticket&ticket=eed155f9a706141186018d2db1c5ed88
⠋ Waiting for authorization...
You are now logged into your Netlify account!
Run netlify status for account details
To see all available commands run: netlify help
Deploy path: /home/runner/work/cornerstone3D/cornerstone3D/packages/docs/build
Deploying to main site URL...
⠋ Uploading blobs to deploy store...
Here is the runner link fix: keep artifacts longer (#2027) · cornerstonejs/cornerstone3D@9d0a1e5 · GitHub