Skip to content

Update renovatebot/github-action action to v44.1.0 (#614) #131

Update renovatebot/github-action action to v44.1.0 (#614)

Update renovatebot/github-action action to v44.1.0 (#614) #131

Workflow file for this run

name: CI
on:
push:
tags:
- '[0-9].[0-9]+.[0-9]'
- '[0-9].[0-9]+.[0-9]+-*'
branches:
- master
- release-*
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
jobs:
build:
name: Build and test on ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
name: Windows
- os: ubuntu-latest
name: Linux
fail-fast: false
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/[email protected]
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Build
run: dotnet build src --configuration Release
- name: Tests
run: dotnet test src --configuration Release --no-build
- name: Upload packages
if: matrix.name == 'Linux'
uses: actions/[email protected]
with:
name: nuget-packages
path: nugets/
retention-days: 2
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/[email protected]
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
- name: Download artifacts
uses: actions/[email protected]
with:
name: nuget-packages
path: nugets/
- name: Check Tag Type
id: check-tag-type
if: github.ref_type == 'tag'
run: |
if [[ ${{ github.ref_name }} =~ [0-9]+.[0-9]+.[0-9]+$ ]]; then
echo "release-type=production" >> $GITHUB_OUTPUT
else
echo "release-type=pre-release" >> $GITHUB_OUTPUT
fi
- name: Deploy pre-release to Feedz.io
if: steps.check-tag-type.outputs.release-type == 'pre-release'
run: |
echo "Tag is pre-release"
echo "Pushing package to Feedz.io"
dotnet nuget push ./nugets/*.nupkg --source https://f.feedz.io/radical-framework/pre-releases/nuget/index.json --api-key ${{ secrets.FEEDZ_API_KEY }}
echo "Pushing Symbols to Feedz.io"
dotnet nuget push ./nugets/*.snupkg --source https://f.feedz.io/radical-framework/pre-releases/nuget/index.json --api-key ${{ secrets.FEEDZ_API_KEY }}
- name: Deploy release to NuGet
if: steps.check-tag-type.outputs.release-type == 'production'
run: |
echo "Tag is production"
echo "Pushing package to NuGet.org"
dotnet nuget push ./nugets/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }}
echo "Pushing Symbols to NuGet.org"
dotnet nuget push ./nugets/*.snupkg --api-key ${{ secrets.NUGET_API_KEY }}