-
Notifications
You must be signed in to change notification settings - Fork 17
63 lines (54 loc) · 1.59 KB
/
ubuntu_release.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Continuous integration for Ubuntu
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .Net 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x.x'
- name: Restore dependencies
run: |
cd src/Asv.Drones.Gui.Desktop
dotnet workload restore
dotnet restore
- name: Build application
run: |
cd src/Asv.Drones.Gui.Desktop
dotnet build -c Release --no-restore
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ubuntu-release
path: ${{ github.workspace }}/src/Asv.Drones.Gui.Desktop/bin/Release/net7.0/
if-no-files-found: error
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: ubuntu-release
path: ubuntu
# ftps:
# needs: artifacts
# runs-on: windows-latest
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: windows-release
# path: windows
#
# - name: Sync files with server
# uses: SamKirkland/[email protected]
# with:
# server: ftp.samkirkland.com
# username: myFtpUserName
# password: ${{ secrets.FTP_PASSWORD }}
# protocol: ftps
# local-dir: ./windows/
# server-dir: public_html/windows/
# port: 1234 # todo replace with your web hosts ftps port