Deployments are "locked" for production context of this site
Closed this issue Β· 2 comments
vanekj commented
Hello, I would like to use these actions to deploy my website to Netlify, but the script requires user interaction.
This is my configuration file:
name: ci
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout π
uses: actions/checkout@master
- name: Setup node env π
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}
- name: Cache node_modules π¦
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies π¨π»βπ»
run: npm ci
- name: Run linter π
run: npm run lint
- name: Build application π
run: npm run generate
- name: Deploy to Netlify π
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
args: deploy --dir=dist --prod
The job does not fail, but no deployment happens.
Should I configure something?
I event tried to enable automatic deployments on every push in Netlify, but even with that option it won't work.
Thank you!
vanekj commented
I had automatic builds disabled as I thought that it will still works from CLI. I enabled automatic builds again, but point to a branch I won't be pushing to every time.
dfa1234 commented
Netlify is more and more disappointing. Why we need such work around?