Skip to content

Commit

Permalink
attempt using netlify cli directly
Browse files Browse the repository at this point in the history
  • Loading branch information
rpodcast committed Apr 2, 2024
1 parent da4b247 commit f0f69ce
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/publish-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,32 @@ jobs:
run: |
source("utils.R"); build_app()
shell: Rscript {0}

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"

- name: Install netlifly cli
run: npm install [email protected] -g

- name: Deploy to netlify
id: netlify_deploy
run: |
prod_flag=""
if [ "$BRANCH_NAME" = "main" ]; then prod_flag="--prod"; fi
netlify deploy \
--dir _site \
--site ${{ secrets.NETILIFY_SITE_ID }} \
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \
$prod_flag
# Use an Action deploy to push the artifact onto Netlify
- name: Deploy to Netilify
- name: Deploy to Net lify
id: deployment
uses: jsmrcaga/[email protected]
if: ${{ false }}
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETILIFY_SITE_ID }}
Expand Down

0 comments on commit f0f69ce

Please sign in to comment.