Skip to content

Commit e508937

Browse files
committed
[WORKFLOW]: Workflow updated. Just copy the content of the publish folder & add Publish since this is a web app with css /js
1 parent c50401d commit e508937

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
run: dotnet restore
2323
- name: Build
2424
run: dotnet build --configuration Release --no-restore
25+
- name: Since is a web app, lets Pushish to get css & JS
26+
run: dotnet publish --configuration Release --no-build
2527
- name: Using artifacts | Upload build artifacts
2628
uses: actions/[email protected]
2729
with:
2830
name: dev.mssp
29-
path: bin/Release/net8.0/
31+
path: bin/Release/net8.0/publish/
3032

3133
- name: Download artifact
3234
uses: actions/[email protected]
@@ -41,7 +43,9 @@ jobs:
4143
username: ${{ secrets.FTP_USERNAME }}
4244
password: ${{ secrets.FTP_PASSWORD }}
4345
port: 22
46+
# Strip components allow to copy only the content of the source folder according to the issue tab on github
47+
strip_components: 1
4448
source: publish/*
45-
target: /var/www/html/mssp/
49+
target: /var/www/mssp/
4650

4751

0 commit comments

Comments
 (0)