Skip to content

Commit

Permalink
ci(publish.yml): set version v3 to actions/checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 27, 2022
1 parent 30fdeca commit 0d6b7c4
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
name: Publish Release to NuGet

on:
"on":
push:
tags:
- v*

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.*
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.*
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.*

- name: Build with dotnet
run: ./build.sh --linksources=true --verbosity=verbose
shell: bash

- name: Publish to NuGet
run: dotnet nuget push packaging/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }}
shell: bash
- uses: actions/checkout@v3
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.*
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.*
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.*
- name: Build with dotnet
run: ./build.sh --linksources=true --verbosity=verbose
shell: bash
- name: Publish to NuGet
run: >-
dotnet nuget push packaging/*.nupkg --api-key ${{
secrets.NUGET_API_KEY }}
shell: bash

0 comments on commit 0d6b7c4

Please sign in to comment.