Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #70

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #70

Workflow file for this run

name: Release
env:
v: '5.2.0'
av: '5.0.0'
pv: '5.2.0'
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check-out source code
with:
submodules: true
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.x
8.0.x
- name: Install dependencies
run: dotnet restore src/Config.Net.sln
- name: Build
run: dotnet build src/Config.Net.sln --configuration Release --no-restore /p:Version=${{ env.pv }} /p:FileVersion=${{ env.v }} /p:AssemblyVersion=${{ env.av }} /p:Authors="Ivan Gavryliuk (@aloneguid)"
- name: Test
run: dotnet test src/Config.Net.sln -c release --filter Category!=Integration --no-restore --verbosity normal /p:Version=${{ env.pv }} /p:FileVersion=${{ env.v }} /p:AssemblyVersion=${{ env.av }} /p:Authors="Ivan Gavryliuk (@aloneguid)"
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: packages
path: src/**/*.nupkg
publish:
needs: [build]
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
environment: nuget
steps:
- name: Download a Build Artifact
uses: actions/[email protected]
with:
name: packages
- name: Push to nuget.org
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Release
uses: softprops/action-gh-release@v1
if: github.ref == 'refs/heads/master'
with:
tag_name: ${{ env.v }}
name: ${{ env.v }}
files: "src/*.zip"
generate_release_notes: true