|
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 | | - - uses: actions/checkout@v4 |
13 | | - with: |
14 | | - fetch-depth: 0 |
15 | | - |
16 | | - - name: Setup .NET |
17 | | - uses: actions/setup-dotnet@v4 |
18 | | - with: |
19 | | - dotnet-version: | |
20 | | - 6.0.x |
21 | | - 8.0.x |
22 | | - 9.0.x |
23 | | - |
24 | | - - name: Run tests |
25 | | - run: dotnet test |
26 | | - |
27 | | - - name: Run publish script |
28 | | - run: ./publish-nix.sh -d |
29 | | - |
30 | | - - name: Update rolling tag |
31 | | - run: | |
32 | | - git config user.name "github-actions[bot]" |
33 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
34 | | - git tag -f rolling |
35 | | - git push origin :refs/tags/rolling || true |
36 | | - git push origin rolling --force |
37 | | -
|
38 | | - - name: Upload to rolling |
39 | | - uses: ncipollo/release-action@v1.14.0 |
40 | | - with: |
41 | | - allowUpdates: True |
42 | | - artifacts: "*.nupkg,*.snupkg,*.zip" |
43 | | - body: 'Last built commit: ${{ github.sha }}' |
44 | | - name: 'Rolling Release' |
45 | | - prerelease: True |
46 | | - replacesArtifacts: True |
47 | | - tag: "rolling" |
48 | | - updateOnlyUnreleased: True |
| 8 | + build: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v5 |
| 13 | + with: |
| 14 | + fetch-depth: 0 |
| 15 | + |
| 16 | + - name: Setup .NET |
| 17 | + uses: actions/setup-dotnet@v5 |
| 18 | + with: |
| 19 | + dotnet-version: | |
| 20 | + 8.0.x |
| 21 | + 9.0.x |
| 22 | + 10.0.x |
| 23 | +
|
| 24 | + - name: Run tests |
| 25 | + run: dotnet test |
| 26 | + |
| 27 | + - name: Run publish script |
| 28 | + run: ./publish-nix.sh -d |
| 29 | + |
| 30 | + - name: Update rolling tag |
| 31 | + run: | |
| 32 | + git config user.name "github-actions[bot]" |
| 33 | + git config user.email "github-actions[bot]@users.noreply.github.com" |
| 34 | + git tag -f rolling |
| 35 | + git push origin :refs/tags/rolling || true |
| 36 | + git push origin rolling --force |
| 37 | +
|
| 38 | + - name: Upload to rolling |
| 39 | + uses: ncipollo/release-action@v1.20.0 |
| 40 | + with: |
| 41 | + allowUpdates: True |
| 42 | + artifacts: "*.nupkg,*.snupkg,*.zip" |
| 43 | + body: "Last built commit: ${{ github.sha }}" |
| 44 | + name: "Rolling Release" |
| 45 | + prerelease: True |
| 46 | + replacesArtifacts: True |
| 47 | + tag: "rolling" |
| 48 | + updateOnlyUnreleased: True |
0 commit comments