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
|
||||
matrix:
|
||||
include:
|
||||
- os: macos-11
|
||||
name: MacOS 11
|
||||
- os: macos-12
|
||||
name: MacOS 12
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||
- name: Setup .NET 6
|
||||
uses: actions/setup-dotnet@v1
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 6.0.401
|
||||
dotnet-version: 6.0.402
|
||||
- name: Build
|
||||
run: ./publish.cmd Release
|
||||
- name: Test
|
||||
|
|
@ -48,13 +46,13 @@ jobs:
|
|||
steps:
|
||||
- name: Install Prerequisites
|
||||
run: dnf makecache --refresh && dnf install -y findutils libicu
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||
- name: Setup .NET 6
|
||||
uses: actions/setup-dotnet@v1
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 6.0.401
|
||||
dotnet-version: 6.0.402
|
||||
- name: Build
|
||||
run: ./publish.cmd Release
|
||||
- name: Test
|
||||
|
|
|
|||
17
.github/workflows/create-release.yml
vendored
17
.github/workflows/create-release.yml
vendored
|
|
@ -10,7 +10,7 @@ jobs:
|
|||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||
token: ${{ secrets.WORKFLOW_TOKEN }}
|
||||
|
|
@ -40,22 +40,22 @@ jobs:
|
|||
id: changelog
|
||||
uses: TriPSs/conventional-changelog-action@v3
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
github-token: ${{ secrets.WORKFLOW_TOKEN }}
|
||||
output-file: false
|
||||
skip-version-file: true
|
||||
skip-commit: true
|
||||
release-count: 1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
||||
- 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:
|
||||
delete_release: true
|
||||
tag_name: v${{ steps.changelog.outputs.version }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
||||
- 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:
|
||||
delete_release: true
|
||||
tag_name: v0.1.0
|
||||
|
|
@ -63,12 +63,11 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
body: ${{ steps.changelog.outputs.clean_changelog }}
|
||||
tag_name: ${{ steps.nbgv.outputs.Version }}
|
||||
release_name: ${{ steps.nbgv.outputs.Version }}
|
||||
name: ${{ steps.nbgv.outputs.Version }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.x
|
||||
- run: pip install mkdocs-material
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ jobs:
|
|||
displayName: 'Install .NET 6'
|
||||
inputs:
|
||||
packageType: sdk
|
||||
version: 6.0.401
|
||||
- task: NuGetAuthenticate@0
|
||||
version: 6.0.402
|
||||
- task: NuGetAuthenticate@1
|
||||
- script: ./publish.cmd Release
|
||||
displayName: 'Build'
|
||||
- script: dotnet test --no-restore
|
||||
|
|
@ -49,8 +49,8 @@ jobs:
|
|||
displayName: 'Install .NET 6'
|
||||
inputs:
|
||||
packageType: sdk
|
||||
version: 6.0.401
|
||||
- task: NuGetAuthenticate@0
|
||||
version: 6.0.402
|
||||
- task: NuGetAuthenticate@1
|
||||
- script: ./publish.cmd Release
|
||||
displayName: 'Build'
|
||||
- script: dotnet test --no-restore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue