* Incremental work on samples * Rename HTTP middleware and update samples * Rename HTTP Activities to Workflows * Automatically register core activities when adding Elsa * Fix feature registration bug * Add default auth feature * Make activity serializer more flexible * Bump designer version * Add workflow server + designer samples * Simplify EntityFrameworkCore projects * Update solution * Add Sqlite package references to ensure the correct version is used * Update sample project with EF Core * Update EF extensions * Add server + designer sample project * Cleanup AllInOne project and add some XML comments * Rename ci.yml and add CI for Docker file
35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
name: Elsa 3 Prerelease
|
|
on:
|
|
push:
|
|
branches:
|
|
- v3
|
|
env:
|
|
nuget_feed_name: 'Packages'
|
|
nuget_feed_source: 'https://pkgs.dev.azure.com/elsa-workflows/3cbdb983-acb6-4ba7-b862-f9e3cbd4e213/_packaging/Packages/nuget/v3/index.json'
|
|
nuget_config: 'NuGet.Config'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Verify commit exists in origin/v3
|
|
run: |
|
|
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
|
git branch --remote --contains | grep origin/v3
|
|
- name: Set VERSION variable
|
|
run: echo "VERSION=3.0.0-preview.${{github.run_number}}" >> $GITHUB_ENV
|
|
- name: Build
|
|
run: dotnet build --configuration Release /p:Version=${VERSION}
|
|
- name: Test
|
|
run: dotnet test --configuration Release /p:Version=${VERSION} --no-build
|
|
- name: Pack
|
|
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
|
|
- name: Authenticate
|
|
run: dotnet nuget add source ${{ env.nuget_feed_source }} --name ${{ env.nuget_feed_name }} --username az --password ${{ secrets.AZURE_DEVOPS_TOKEN }} --store-password-in-clear-text --configfile ${{ env.nuget_config }}
|
|
- name: Push
|
|
run: dotnet nuget push *.nupkg --api-key az --source ${{ env.nuget_feed_name }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |