Skip to content

Update push-hostinger.yml #18

Update push-hostinger.yml

Update push-hostinger.yml #18

name: Publish .NET 8 Blazor Wasm
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
GIT_PACKAGES_TOKEN: ${{ secrets.GIT_PACKAGES_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Restore NuGet packages
run: |
nuget restore src/Monambike.Website.sln # Default restore
nuget restore src/Monambike.Website.sln -Source https://nuget.pkg.github.com/monambike/index.json -ApiKey ${{ secrets.NUGET_TOKEN }}
- name: Build and publish
run: dotnet publish -c Release --output ./publish-folder
- name: Deploy via FTP
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./publish-folder
remote-dir: public_html
passive: true