小编And*_*fte的帖子

dotnet 使用 ftp 发布和部署 Github Actions

我正在尝试将 Github Actions 设置为: -build .net Core 应用程序 -测试应用程序(单元测试) -发布版本(dotnet 发布) -部署到 ftp 服务器

我在最后一步遇到一些问题。我正在使用此操作部署到 ftp:https ://github.com/SamKirkland/FTP-Deploy-Action

它始终部署整个存储库,而不仅仅是发布文件。

我的工作流程:

name: BuildAndTest

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
  uses: actions/setup-dotnet@v1
  with:
    dotnet-version: 3.1.101
- name: Install dependencies
  run: dotnet restore
- name: Build with dotnet
  run: dotnet build --configuration Release --no-restore
- name: Test
  run: dotnet test --no-restore --verbosity normal
- name: …
Run Code Online (Sandbox Code Playgroud)

.net ftp asp.net-core dotnet-cli github-actions

5
推荐指数
1
解决办法
3816
查看次数

标签 统计

.net ×1

asp.net-core ×1

dotnet-cli ×1

ftp ×1

github-actions ×1