Skip to content

publicar

publicar #16

Workflow file for this run

name: publicar
on:
workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set current date as env variable
id: date
run: echo "::set-output name=date::$(date +'%Y.%m.%d.%H%M')"
- name: Echo current date
run: echo ${{ steps.date.outputs.date }}
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies Motor
run: dotnet restore
working-directory: 'src/'
- name: Build
run: dotnet build --no-restore
working-directory: 'src/'
- name: Test
run: dotnet test --no-build --verbosity normal
working-directory: 'src/'
- name: Publish-Nuget
uses: robertorp/publish-nuget@master
with:
PROJECT_FILE_PATH: 'src/MotorTributarioNet/MotorTributarioNet.csproj'
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
TAG_COMMIT: false
VERSION_STATIC: ${{ steps.date.outputs.date }}