-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 950 Bytes
/
push-hostinger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 src/Monambike.Website.sln
- name: Build and publish
run: dotnet publish -c Release --output ./publish-folder
- name: Deploy via FTP
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
env:
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
GIT_PACKAGES_TOKEN: ${{ secrets.GIT_PACKAGES_TOKEN }}
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./publish-folder
remote-dir: public_html
passive: true