Comments (6)
No luck with this action, but haven't tried much. In the end I moved away from using this action and instead use the netlify-cli directly. Worked on first try, and I can use the same command locally.
The step I use to deploy:
- name: Deploy to Netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_CHECKOUT }}
run: "npm install -g netlify-cli && npx netlify deploy --prod --message \"${{ github.event.head_commit.message }}\""
from actions-netlify.
Just checking to see if you'd had any luck with this? I've pointed to my edge_functions in the netlify.toml
(and the pointed the action to this), but no luck getting Netlify to pick them up.
If I use Netlify's built in GH integration, they work great, but we have some GH voodoo to do first (merging content from a couple of repos) before we deploy our website fully, so need to deploy via GH Actions.
from actions-netlify.
Thanks, I ended up going for a different approach of using GitHub actions to handle the repo merging we needed to do, then committing/pushing that to a dedicated live
branch and then use Netlify's native GH integration to pull
from actions-netlify.
Cool you found a way! For reference, this is the complete workflow that I use. This is part of a mono-repo, so I switch the directory in the start to the one I want to deploy. Just including it to promote nix.. 🤓
name: "Build & Deploy App to Netlify"
on:
pull_request:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./app
if: "contains(github.event.head_commit.message, '[release app]') || contains(github.event.head_commit.message, '[release all]')"
steps:
- name: Checking out the repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Installing Nix
uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build the app
uses: workflow/[email protected]
with:
packages: jdk11,nodePackages.npm,nodejs
script: |
npm ci
npm run release -w app
- name: Deploy to Netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_CHECKOUT }}
run: "npm install -g netlify-cli && npx netlify deploy --prod --message \"${{ github.event.head_commit.message }}\""
from actions-netlify.
https://github.com/netlify/actions/tree/master/cli uses netlify-cli inside. It is netlify official.
from actions-netlify.
It is netlify official.
I had tried it, but just kept hitting limitations of what I needed, and errors, e.g. can't run the build
command on a nested directory using that Action.
from actions-netlify.
Related Issues (20)
- output deploy id
- Invalid action input 'enable-github-deployment' HOT 6
- Release HOT 2
- Error: Unprocessable Entity HOT 2
- Update node version to 20 HOT 1
- Page Not Found for Remix + Vite App HOT 1
- No such file or directory when deploying HOT 3
- Netlify preview build not using netlify.toml HOT 2
- netlify-config-path not working for me HOT 1
- Production deployment not working HOT 1
- How to delete deploy preview on PR merge? HOT 4
- Critical security issue with preview deployments HOT 5
- Netlify Large Media? HOT 1
- Upload crashes when using TS files in the 'functions' folder HOT 2
- Wich is the right publish-dir path to Nextjs? HOT 4
- Deprecation warning for Node 12 HOT 7
- (More) deprecation warning for Node 12 HOT 2
- ✨ add input to enable/disable github deployment
- Post 2 comments for two separate builds HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-netlify.