Skip to content

Commit

Permalink
fix: deployment (#2)
Browse files Browse the repository at this point in the history
* Use .NET 8

* Allow workflow_dispatch
  • Loading branch information
vbreuss authored Mar 30, 2024
1 parent 23c5e9a commit b5f0891
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build

on:
workflow_dispatch:
push:
branches: [main]

Expand All @@ -14,21 +15,21 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish
run: dotnet publish -c Release --output /home/runner/work/grox.at/grox.at/publish/
run: dotnet publish -c Release --output /home/runner/work/Testably.Server/Testably.Server/publish/ Source/Testably.Server/Testably.Server.csproj
- name: Upload ftp
uses: sebastianpopp/ftp-action@releases/v2
with:
host: ftps://access938340810.webspace-data.io:990
user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
localDir: /home/runner/work/grox.at/grox.at/publish/
localDir: /home/runner/work/Testably.Server/Testably.Server/publish/
remoteDir: "."
options: "--delete"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down

0 comments on commit b5f0891

Please sign in to comment.