elsa-core/.github/workflows/release.yml
2022-11-09 15:44:49 +01:00

29 lines
1.1 KiB
YAML

name: Deploy Elsa 3 packages
on:
push:
tags:
- "v3.0.0-test3"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v2
- 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 from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $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 "github"
run: nuget push -source https://f.feedz.io/elsa-workflows/v3/nuget/index.json -ApiKey ${{ secrets.FEEDS_IO_PAT }} *.nupkg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}