Skip to content

Bump Verify.Xunit from 22.10.2 to 22.11.1 #365

Bump Verify.Xunit from 22.10.2 to 22.11.1

Bump Verify.Xunit from 22.10.2 to 22.11.1 #365

Workflow file for this run

name: PeNet.Asn1
on:
push:
branches:
- master
- devel
tags:
- 'v*'
pull_request:
branches:
- master
- devel
jobs:
build-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7'
- name: Test
run: dotnet test
release:
name: Release
runs-on: ubuntu-latest
needs:
- build-test
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7'
- name: Extract Version
run: |
echo "VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
echo $VERSION
- name: Replace Version
run: sed -i 's|<Version>0.0.0</Version>|'"<Version>$VERSION</Version>"'|' src/PeNet.Asn1/PeNet.Asn1.csproj
- name: Package
run: dotnet pack -o artifacts
- name: Publish
run: dotnet nuget push artifacts/*.nupkg --source https://api.nuget.org/v3/index.json -k $secrets.NUGET_API_KEY