28 lines
1 KiB
YAML
28 lines
1 KiB
YAML
name: Elsa 3 Prerelease
|
|
on:
|
|
push:
|
|
branches:
|
|
- v3
|
|
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} --no-build --output .
|
|
- name: Push
|
|
run: dotnet nuget push *.nupkg --api-key ${{ secrets.FEEDS_IO_PAT }} --source https://f.feedz.io/elsa-workflows/v3/nuget/index.json
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |