@DaniilPo

Почему файлы не загружаются на сервер?

Пытаюсь в GitHub собрать и отправить свой проект на сервер, но по какой-то причине файлы не закачиваются на сервер
использую FTP Deploy
Вот настройки:
name: Mega app Build & Deploy

on:
  push:
    branches: [ main ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: Use Node.js 16.15.0
      uses: actions/setup-node@v3
      with:
        node-version: 16.15.0
        cache: 'npm'
    - run: npm ci
    - run: npm run docs:build

    - run: npm test
    - run: ls -R
    - uses: actions/upload-artifact@main
      with:
        name: my-artifact
        path: demo/dist
  
  deploy:
    needs: build
    runs-on: ubuntu-latest
    steps:
      - name: Download Deployment Artefact
        uses: actions/download-artifact@main
        with:
          name: my-artifact
          path: demo/dist
      - name: FTP Deploy
        uses: SamKirkland/FTP-Deploy-Action@4.3.0
        with:
          # ftp server
          server: xxxxxxxxxxx
          # ftp username
          username: xxxxxxxxxxxxxxx
          # ftp password
          password: ${{ secrets.FTP_PASSWORD }} 
          # Server port to connect to (read your web hosts docs)
          port: 21
          # protocol to deploy with - ftp, ftps, or ftps-legacy
          protocol: ftp
          # Folder to upload from, must end with trailing slash /
          local-dir: demo/dist/
          # Path to upload to on the server. Must end with trailing slash /
          server-dir: xxxxxxxx
          # Path and name of the state file - this file is used to track which files have been deployed
          state-name: .ftp-deploy-sync-state.json
          # Prints which modifications will be made with current config options, but doesnt actually make any changes
          dry-run: true
          # Deletes ALL contents of server-dir, even items in excluded with exclude argument
          dangerous-clean-slate: false
          # An array of glob patterns, these files will not be included in the publish/delete process
          exclude: |
            **/node_modules/**
            fileToExclude.txt
          # How verbose should the information be - minimal, standard, or verbose
          log-level: verbose
          # strict or loose
          security: loose


в консоли пишет что всё вроде как закачалось однако на сервере не появляется ни один файл,
ftp подключение успешно
и сами файлы я могу скачать с гита так что и с ними не должно быть проблем
  • Вопрос задан
  • 100 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы