Format GHA definitions

This commit is contained in:
Matt Nadareski
2025-11-17 08:40:06 -05:00
parent 37b09b07a6
commit 46ad576668
2 changed files with 57 additions and 57 deletions

View File

@@ -1,48 +1,48 @@
name: Build and Test name: Build and Test
on: on:
push: push:
branches: [ "main" ] branches: ["main"]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Run tests
run: dotnet test
- name: Run publish script
run: ./publish-nix.sh
- name: Update rolling tag - name: Setup .NET
run: | uses: actions/setup-dotnet@v5
git config user.name "github-actions[bot]" with:
git config user.email "github-actions[bot]@users.noreply.github.com" dotnet-version: |
git tag -f rolling 8.0.x
git push origin :refs/tags/rolling || true 9.0.x
git push origin rolling --force 10.0.x
- name: Upload to rolling - name: Run tests
uses: ncipollo/release-action@v1.20.0 run: dotnet test
with:
allowUpdates: True - name: Run publish script
artifacts: "*.nupkg,*.snupkg" run: ./publish-nix.sh
body: 'Last built commit: ${{ github.sha }}'
name: 'Rolling Release' - name: Update rolling tag
prerelease: True run: |
replacesArtifacts: True git config user.name "github-actions[bot]"
tag: "rolling" git config user.email "github-actions[bot]@users.noreply.github.com"
updateOnlyUnreleased: True git tag -f rolling
git push origin :refs/tags/rolling || true
git push origin rolling --force
- name: Upload to rolling
uses: ncipollo/release-action@v1.20.0
with:
allowUpdates: True
artifacts: "*.nupkg,*.snupkg"
body: "Last built commit: ${{ github.sha }}"
name: "Rolling Release"
prerelease: True
replacesArtifacts: True
tag: "rolling"
updateOnlyUnreleased: True

View File

@@ -3,21 +3,21 @@ name: Build PR
on: [pull_request] on: [pull_request]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Build
run: dotnet build
- name: Run tests - name: Setup .NET
run: dotnet test uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Build
run: dotnet build
- name: Run tests
run: dotnet test