I have created

I have created a web site by using tinacms and published it but when I push a new commit to the main branch my site does not get updated. (Actions look fine). Can you please help me to fix this?

name: Tina Production build

on:
push:
branches: [ “main” ]
pull_request:
branches: [ “main” ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
  matrix:
    node-version: [18.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
  uses: actions/setup-node@v3
  with:
    node-version: ${{ matrix.node-version }}
    cache: 'yarn'
        
- name: Install dependencies
  run: yarn

- name: Build TinaCMS
  env:
    TINA_PUBLIC_CLIENT_ID: ${{ secrets.TINA_PUBLIC_CLIENT_ID }}
    TINA_TOKEN: ${{ secrets.TINA_TOKEN }}
    NEXT_PUBLIC_TINA_BRANCH: ${{ secrets.NEXT_PUBLIC_TINA_BRANCH }}
  run: yarn export
  
- name: SFTP Deploy
  uses: SamKirkland/[email protected]
  with:
    server: ${{ secrets.FTP_HOST }}
    username: ${{ secrets.FTP_USER }}
    password: ${{ secrets.FTP_PASSWORD }}
    local-dir: 'out/'

How does this relate to Cloudflare? If you are hosting with Pages then you can’t SFTP the uploads and have to use wrangler.

2 Likes

Thankyou very much. You have pointed the problem. :handshake:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.