|
1 | 1 | name: Build and Test |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: [ "master" ] |
| 4 | + push: |
| 5 | + branches: ["master"] |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - build: |
9 | | - runs-on: ubuntu-latest |
10 | | - |
11 | | - steps: |
12 | | - - name: Free Disk Space (Ubuntu) |
13 | | - |
14 | | - with: |
15 | | - dotnet: false |
16 | | - |
17 | | - - uses: actions/checkout@v4 |
18 | | - with: |
19 | | - fetch-depth: 0 |
20 | | - |
21 | | - - name: Setup .NET |
22 | | - uses: actions/setup-dotnet@v4 |
23 | | - with: |
24 | | - dotnet-version: | |
25 | | - 6.0.x |
26 | | - 8.0.x |
27 | | - 9.0.x |
28 | | - 10.0.x |
29 | | - |
30 | | - - name: Run tests |
31 | | - run: dotnet test |
32 | | - |
33 | | - - name: Run publish script |
34 | | - run: ./publish-nix.sh -dp |
35 | | - |
36 | | - - name: Update rolling tag |
37 | | - run: | |
38 | | - git config user.name "github-actions[bot]" |
39 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
40 | | - git tag -f rolling |
41 | | - git push origin :refs/tags/rolling || true |
42 | | - git push origin rolling --force |
43 | | -
|
44 | | - - name: Upload to rolling |
45 | | - |
46 | | - with: |
47 | | - allowUpdates: True |
48 | | - artifacts: "*.nupkg,*.snupkg,*.zip" |
49 | | - body: 'Last built commit: ${{ github.sha }} |
50 | | -
|
51 | | - ## UI Builds |
52 | | -
|
53 | | - [Windows x64 UI Release](https://github.com/SabreTools/MPF/releases/download/rolling/MPF.UI_net9.0-windows_win-x64_release.zip) |
54 | | -
|
55 | | - [Windows x64 UI Debug](https://github.com/SabreTools/MPF/releases/download/rolling/MPF.UI_net9.0-windows_win-x64_debug.zip)' |
56 | | - name: 'Rolling Release' |
57 | | - prerelease: True |
58 | | - replacesArtifacts: True |
59 | | - tag: "rolling" |
60 | | - updateOnlyUnreleased: True |
| 8 | + build: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + |
| 11 | + steps: |
| 12 | + - name: Free Disk Space (Ubuntu) |
| 13 | + |
| 14 | + with: |
| 15 | + dotnet: false |
| 16 | + |
| 17 | + - uses: actions/checkout@v5 |
| 18 | + with: |
| 19 | + fetch-depth: 0 |
| 20 | + |
| 21 | + - name: Setup .NET |
| 22 | + uses: actions/setup-dotnet@v5 |
| 23 | + with: |
| 24 | + dotnet-version: | |
| 25 | + 8.0.x |
| 26 | + 9.0.x |
| 27 | + 10.0.x |
| 28 | +
|
| 29 | + - name: Run tests |
| 30 | + run: dotnet test |
| 31 | + |
| 32 | + - name: Run publish script |
| 33 | + run: ./publish-nix.sh -dp |
| 34 | + |
| 35 | + - name: Update rolling tag |
| 36 | + run: | |
| 37 | + git config user.name "github-actions[bot]" |
| 38 | + git config user.email "github-actions[bot]@users.noreply.github.com" |
| 39 | + git tag -f rolling |
| 40 | + git push origin :refs/tags/rolling || true |
| 41 | + git push origin rolling --force |
| 42 | +
|
| 43 | + - name: Upload to rolling |
| 44 | + |
| 45 | + with: |
| 46 | + allowUpdates: True |
| 47 | + artifacts: "*.nupkg,*.snupkg,*.zip" |
| 48 | + body: "Last built commit: ${{ github.sha }} |
| 49 | +
|
| 50 | + ## UI Builds |
| 51 | +
|
| 52 | + [Windows x64 UI Release](https://github.com/SabreTools/MPF/releases/download/rolling/MPF.UI_net10.0-windows_win-x64_release.zip) |
| 53 | +
|
| 54 | + [Windows x64 UI Debug](https://github.com/SabreTools/MPF/releases/download/rolling/MPF.UI_net10.0-windows_win-x64_debug.zip)" |
| 55 | + name: "Rolling Release" |
| 56 | + prerelease: True |
| 57 | + replacesArtifacts: True |
| 58 | + tag: "rolling" |
| 59 | + updateOnlyUnreleased: True |
0 commit comments