-
-
Notifications
You must be signed in to change notification settings - Fork 2
94 lines (77 loc) · 2.52 KB
/
webapp-build-net-ubuntu.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Ubuntu .NET build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches: [ master ]
paths:
- 'starsky/**'
- '!starsky/starsky/clientapp/**'
- '!starsky/Dockerfile'
- '!starsky/docker_demo_setup.sh'
- '.github/workflows/**'
workflow_dispatch:
push:
branches: [release/*]
paths:
- '**.cshtml'
- '**.cs'
- '**.sln'
- '**.json'
- '**.csproj'
jobs:
build:
runs-on: ubuntu-latest
env:
WEBSITE_SITE_NAME: "ci"
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.403
- name: Cache nuget packages (*nix)
uses: actions/cache@v4
with:
# nuget cache files are stored in `~/.nuget/packages` on Linux/macOS
path: ~/.nuget/packages
key: ${{ runner.os }}-build-netcore-${{ hashFiles('./starsky/starsky/nuget-packages-list.json') }}
restore-keys: |
${{ runner.os }}-build-netcore-
- name: "BuildNetCore (Ubuntu)"
shell: bash
working-directory: ./starsky
run: bash build.sh --Target BuildNetCore --no-sonar --no-publish --no-dependencies --no-logo
- name: "TestNetCore (Ubuntu)"
shell: bash
working-directory: ./starsky
run: bash build.sh --Target TestNetCore --no-logo --no-publish
- name: "Set locale to: nl_NL.UTF-8"
run: |
export LANG="nl_NL.UTF-8"
sudo locale-gen nl_NL.UTF-8
sudo update-locale LANG=nl_NL.UTF-8
date
- name: "Locale TestNetCore [nl_NL] (Ubuntu)"
shell: bash
working-directory: ./starsky
run: |
export LANG="nl_NL.UTF-8"
bash build.sh --Target TestNetCore --no-dependencies --no-publish --no-logo
trigger_pipe_release_desktop:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
# needs nothing - no dependencies
steps:
- name: trigger desktop-release-on-tag-net-electron.yml
shell: bash
env:
NOTE_READ_THIS_NOW: "Need a github token that has more rights otherwise it will be ignored"
run: |
curl \
-H"authorization: Bearer ${{ secrets.WORKFLOW_GITHUB }}" \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/desktop-release-on-tag-net-electron.yml/dispatches \
-d '{"ref":"master"}' -v