fix: Updates Github Actions & Azure Pipelines (#1192)

This commit is contained in:
Kamron Batman 2022-10-16 10:10:55 -07:00 committed by GitHub
parent 3396338926
commit 5e7dbb53c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 23 deletions

View file

@ -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

View file

@ -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 }}

View file

@ -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

View file

@ -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