Skip to content

Rename push-hostinger to push-hostinger.yml #1

Rename push-hostinger to push-hostinger.yml

Rename push-hostinger to push-hostinger.yml #1

name: Publish .NET 8 Blazor Wasm
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build and publish
run: dotnet publish -c Release --output ./publish-folder
- name: Deploy via FTP
uses: SamKirkland/FTP-Deploy-Action@4.1
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./publish-folder
remote-dir: public_html
passive: true