Skip to content

deps: bump github actions versions #2

deps: bump github actions versions

deps: bump github actions versions #2

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
version:
strategy:
matrix:
project-name: [Rapidata.MongoDB.Migrations, Rapidata.MongoDB.Migrations.AspNetCore]
name: Create New version
runs-on: ubuntu-latest
env:
CURRENT_PROJECT: ${{ matrix.project-name }}.csproj
steps:
- name: 🔻 Checkout
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: 🏷️ Semantic Release
id: release
uses: cycjimmy/semantic-release-action@v4
with:
working_directory: src/${{ matrix.project-name }}
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/github
@semantic-release/git
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Pack & Publish to NuGet
if: ${{ steps.release.outputs.new_release_version }}
run: |
dotnet clean
dotnet pack src/${{ matrix.project-name }}/${{ matrix.project-path }}.csproj --configuration Release --include-symbols --output ${{ github.workspace }}/output/${{ matrix.project-name }}
dotnet nuget push ${{ github.workspace }}/output/${{ matrix.project-name }}/*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s ${{ secrets.NUGET_PUSH_URL }}