Format GHA definitions

This commit is contained in:
Matt Nadareski
2025-11-17 08:37:00 -05:00
parent 6b015f91d6
commit f66c81bbf0
2 changed files with 55 additions and 55 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 - name: Setup .NET
uses: actions/setup-dotnet@v5 uses: actions/setup-dotnet@v5
with: with:
dotnet-version: | dotnet-version: |
8.0.x 8.0.x
9.0.x 9.0.x
10.0.x 10.0.x
- name: Run tests - name: Run tests
run: dotnet test run: dotnet test
- name: Run publish script
run: ./publish-nix.sh -d
- name: Update rolling tag - name: Run publish script
run: | run: ./publish-nix.sh -d
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -f rolling
git push origin :refs/tags/rolling || true
git push origin rolling --force
- name: Upload to rolling - name: Update rolling tag
uses: ncipollo/release-action@v1.20.0 run: |
with: git config user.name "github-actions[bot]"
allowUpdates: True git config user.email "github-actions[bot]@users.noreply.github.com"
artifacts: "*.nupkg,*.snupkg" git tag -f rolling
body: 'Last built commit: ${{ github.sha }}' git push origin :refs/tags/rolling || true
name: 'Rolling Release' git push origin rolling --force
prerelease: True
replacesArtifacts: True - name: Upload to rolling
tag: "rolling" uses: ncipollo/release-action@v1.20.0
updateOnlyUnreleased: True 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