fix: Updates Github Actions & Azure Pipelines (#1192)
This commit is contained in:
parent
3396338926
commit
5e7dbb53c1
4 changed files with 20 additions and 23 deletions
14
.github/workflows/build-test.yml
vendored
14
.github/workflows/build-test.yml
vendored
|
|
@ -14,19 +14,17 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: macos-11
|
|
||||||
name: MacOS 11
|
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
name: MacOS 12
|
name: MacOS 12
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||||
- name: Setup .NET 6
|
- name: Setup .NET 6
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.401
|
dotnet-version: 6.0.402
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./publish.cmd Release
|
run: ./publish.cmd Release
|
||||||
- name: Test
|
- name: Test
|
||||||
|
|
@ -48,13 +46,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Install Prerequisites
|
- name: Install Prerequisites
|
||||||
run: dnf makecache --refresh && dnf install -y findutils libicu
|
run: dnf makecache --refresh && dnf install -y findutils libicu
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||||
- name: Setup .NET 6
|
- name: Setup .NET 6
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.401
|
dotnet-version: 6.0.402
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./publish.cmd Release
|
run: ./publish.cmd Release
|
||||||
- name: Test
|
- name: Test
|
||||||
|
|
|
||||||
17
.github/workflows/create-release.yml
vendored
17
.github/workflows/create-release.yml
vendored
|
|
@ -10,7 +10,7 @@ jobs:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||||
token: ${{ secrets.WORKFLOW_TOKEN }}
|
token: ${{ secrets.WORKFLOW_TOKEN }}
|
||||||
|
|
@ -40,22 +40,22 @@ jobs:
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: TriPSs/conventional-changelog-action@v3
|
uses: TriPSs/conventional-changelog-action@v3
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.WORKFLOW_TOKEN }}
|
||||||
output-file: false
|
output-file: false
|
||||||
skip-version-file: true
|
skip-version-file: true
|
||||||
skip-commit: true
|
skip-commit: true
|
||||||
release-count: 1
|
release-count: 1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
||||||
- name: Delete v${{ steps.changelog.outputs.version }} Tag
|
- name: Delete v${{ steps.changelog.outputs.version }} Tag
|
||||||
uses: dev-drprasad/delete-tag-and-release@v0.1.3
|
uses: dev-drprasad/delete-tag-and-release@v0.2.0
|
||||||
with:
|
with:
|
||||||
delete_release: true
|
delete_release: true
|
||||||
tag_name: v${{ steps.changelog.outputs.version }}
|
tag_name: v${{ steps.changelog.outputs.version }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
||||||
- name: Delete v0.1.0 Tag
|
- name: Delete v0.1.0 Tag
|
||||||
uses: dev-drprasad/delete-tag-and-release@v0.1.3
|
uses: dev-drprasad/delete-tag-and-release@v0.2.0
|
||||||
with:
|
with:
|
||||||
delete_release: true
|
delete_release: true
|
||||||
tag_name: v0.1.0
|
tag_name: v0.1.0
|
||||||
|
|
@ -63,12 +63,11 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
body: ${{ steps.changelog.outputs.clean_changelog }}
|
body: ${{ steps.changelog.outputs.clean_changelog }}
|
||||||
tag_name: ${{ steps.nbgv.outputs.Version }}
|
tag_name: ${{ steps.nbgv.outputs.Version }}
|
||||||
release_name: ${{ steps.nbgv.outputs.Version }}
|
name: ${{ steps.nbgv.outputs.Version }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
env:
|
token: ${{ secrets.WORKFLOW_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
|
||||||
|
|
|
||||||
4
.github/workflows/update-docs.yml
vendored
4
.github/workflows/update-docs.yml
vendored
|
|
@ -9,8 +9,8 @@ jobs:
|
||||||
update-docs:
|
update-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- run: pip install mkdocs-material
|
- run: pip install mkdocs-material
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@ jobs:
|
||||||
displayName: 'Install .NET 6'
|
displayName: 'Install .NET 6'
|
||||||
inputs:
|
inputs:
|
||||||
packageType: sdk
|
packageType: sdk
|
||||||
version: 6.0.401
|
version: 6.0.402
|
||||||
- task: NuGetAuthenticate@0
|
- task: NuGetAuthenticate@1
|
||||||
- script: ./publish.cmd Release
|
- script: ./publish.cmd Release
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
- script: dotnet test --no-restore
|
- script: dotnet test --no-restore
|
||||||
|
|
@ -49,8 +49,8 @@ jobs:
|
||||||
displayName: 'Install .NET 6'
|
displayName: 'Install .NET 6'
|
||||||
inputs:
|
inputs:
|
||||||
packageType: sdk
|
packageType: sdk
|
||||||
version: 6.0.401
|
version: 6.0.402
|
||||||
- task: NuGetAuthenticate@0
|
- task: NuGetAuthenticate@1
|
||||||
- script: ./publish.cmd Release
|
- script: ./publish.cmd Release
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
- script: dotnet test --no-restore
|
- script: dotnet test --no-restore
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue