Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
beyaz committed Nov 30, 2024
1 parent e3dd149 commit 5328fb0
Showing 1 changed file with 1 addition and 57 deletions.
58 changes: 1 addition & 57 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5328fb0

Please sign in to comment.