Skip to content

Update github actions runner #25

Update github actions runner

Update github actions runner #25

Workflow file for this run

name: Nuget Package Deploy
on:
push:
tags:
- '*'
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.200
- name: Build
run: dotnet build -c Release
working-directory: ./NetBarcode
- name: Pack nuget package
run: dotnet pack /p:PackageVersion=${GITHUB_REF:10} --configuration Release
working-directory: ./NetBarcode
- name: Push package to nuget
run: dotnet nuget push **/*.nupkg
--skip-duplicate
--no-symbols true
--api-key ${{ secrets.NUGET_DEPLOY_KEY }}
--source https://api.nuget.org/v3/index.json
working-directory: ./NetBarcode