-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,60 +22,4 @@ jobs: | |
- name: Build | ||
run: dotnet build --no-restore | ||
#- name: Test | ||
# run: dotnet test --no-build --verbosity normal | ||
|
||
################################# | ||
# π PREPARE wwwroot FOLDER π # | ||
################################# | ||
- name: Script | ||
run: | | ||
set-location ReactWithDotNet.WebSite/wwwroot/ | ||
npm install | ||
npm run-script build | ||
Remove-Item 'react-with-dotnet' -Recurse | ||
Remove-Item 'package.json' | ||
Remove-Item 'package-lock.json' | ||
Remove-Item 'index.jsx' | ||
shell: pwsh | ||
|
||
################## | ||
# π PUBLISH π # | ||
################## | ||
- uses: EasyDesk/action-dotnet-publish@v1 | ||
with: | ||
# (Optional) The path to the project that should be published. | ||
# If not specified, defaults to '.'. | ||
path: 'ReactWithDotNet.WebSite/' | ||
|
||
# (Optional) Additional command line arguments to be passed to 'dotnet test'. | ||
# If not specified, defaults to 'packages'. | ||
output-dir: 'FinalWebApp' | ||
|
||
# (Optional) The build configuration. | ||
# If not specified, defaults to 'Release'. | ||
#build-configuration: Release | ||
|
||
# (Optional) Whether to skip the build using the '--no-build' flag. | ||
# If not specified, defaults to true. | ||
skip-build: false | ||
|
||
############################## | ||
# π REMOVE UNUSED FILES π # | ||
############################## | ||
- name: Script | ||
run: | | ||
Remove-Item 'FinalWebApp/*.pdb' | ||
Remove-Item 'FinalWebApp/*.xml' | ||
shell: pwsh | ||
|
||
# ############################ | ||
# # π DEPLOY REMOTE FTP π # | ||
# ############################ | ||
#- name: π Sync files | ||
# uses: SamKirkland/[email protected] | ||
# with: | ||
# server: win5173.site4now.net | ||
# username: ${{ secrets.FTP_USER_NAME }} | ||
# password: ${{ secrets.FTP_PASSWORD }} | ||
# local-dir: FinalWebApp/ | ||
# server-dir: submission/ | ||
# run: dotnet test --no-build --verbosity normal |