mirror of
https://github.com/SabreTools/SabreTools.RedumpLib.git
synced 2026-02-04 05:36:11 +00:00
Format GHA definitions
This commit is contained in:
76
.github/workflows/build_and_test.yml
vendored
76
.github/workflows/build_and_test.yml
vendored
@@ -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
|
||||||
|
|||||||
34
.github/workflows/check_pr.yml
vendored
34
.github/workflows/check_pr.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user