Update main.yml #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
dry-run: true |