Repository navigation
61 lines (48 loc) · 1.47 KB
/
Copy pathcodesync.yml
File metadata and controls
61 lines (48 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build and Deploy to SmarterASP.NET CodeSync Platform
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore Dependencies
run: dotnet restore Education/Education.csproj
- name: Build Project
run: dotnet build Education/Education.csproj --configuration Release --no-restore
- name: Publish Project
run: dotnet publish Education/Education.csproj --configuration Release --no-build --output ./publish
- name: Verify Publish Folder
shell: pwsh
run: |
Write-Host "===== Published Files ====="
Get-ChildItem -Path ./publish -Recurse
- name: Deploy to SmarterASP.NET
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./publish/
server-dir: /CodeSync/
dangerous-clean-slate: false
exclude: |
**/.git/**
**/.github/**
**/bin/**
**/obj/**
**/node_modules/**
**/.vs/**
**/*.user
**/*.pdb
**/README.md