Skip to content

Update main.yml

Update main.yml #8

Workflow file for this run

on:
push:
branches:
- master
name: Deploy website on push
jobs:
web-deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0
- name: Add NuGet source
run: dotnet nuget add source https://nuggets.doublebyte.org/v3/index.json --name doublebyte
- name: Install dependencies
run: dotnet restore
- name: Build with dotnet
run: dotnet build --configuration Release --no-restore
- name: Publish
run: dotnet publish -c Release --output ./Release
- name: Push files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
local-dir: ./Release/
timeout: 7000000