Skip to content

Commit

Permalink
pass version to all publish
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliov committed Apr 16, 2020
1 parent 782b6ff commit 057718c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-to-GitHub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- 'v[0-9].[0-9]*'
paths:
- 'src/**'
- '.github/workflows/**'

jobs:
build:
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
- name: 'Package FunctionRuntime'
run: |
mkdir -p outputs/function
dotnet publish --configuration $CONFIGURATION --output $GITHUB_WORKSPACE/outputs/function/ src/aggregator-function/aggregator-function.csproj
dotnet publish --configuration $CONFIGURATION --output $GITHUB_WORKSPACE/outputs/function/ src/aggregator-function/aggregator-function.csproj -p:VersionPrefix=${{ steps.gitversion.outputs.majorMinorPatch }} -p:VersionSuffix=${{ steps.gitversion.outputs.preReleaseTag }}
pushd outputs/function && \
7z a -bd -r FunctionRuntime.zip && \
popd
Expand Down Expand Up @@ -84,7 +85,7 @@ jobs:
- name: 'Package aggregator-cli Windows'
run: |
mkdir -p outputs/$RUNTIME
dotnet publish --configuration $CONFIGURATION --runtime $RUNTIME --self-contained true --output $GITHUB_WORKSPACE/outputs/$RUNTIME/ src/aggregator-cli/aggregator-cli.csproj
dotnet publish --configuration $CONFIGURATION --runtime $RUNTIME --self-contained true --output $GITHUB_WORKSPACE/outputs/$RUNTIME/ src/aggregator-cli/aggregator-cli.csproj -p:VersionPrefix=${{ steps.gitversion.outputs.majorMinorPatch }} -p:VersionSuffix=${{ steps.gitversion.outputs.preReleaseTag }}
pushd outputs/$RUNTIME && \
7z a -bd -r aggregator-cli-win-x64.zip && \
popd
Expand All @@ -93,7 +94,7 @@ jobs:
- name: 'Package aggregator-cli Linux'
run: |
mkdir -p outputs/$RUNTIME
dotnet publish --configuration $CONFIGURATION --runtime $RUNTIME --self-contained true --output $GITHUB_WORKSPACE/outputs/$RUNTIME/ src/aggregator-cli/aggregator-cli.csproj
dotnet publish --configuration $CONFIGURATION --runtime $RUNTIME --self-contained true --output $GITHUB_WORKSPACE/outputs/$RUNTIME/ src/aggregator-cli/aggregator-cli.csproj -p:VersionPrefix=${{ steps.gitversion.outputs.majorMinorPatch }} -p:VersionSuffix=${{ steps.gitversion.outputs.preReleaseTag }}
pushd outputs/$RUNTIME && \
7z a -bd -r aggregator-cli-linux-x64.zip && \
popd
Expand All @@ -102,7 +103,7 @@ jobs:
- name: 'Package aggregator-cli OS/X'
run: |
mkdir -p outputs/$RUNTIME
dotnet publish --configuration $CONFIGURATION --runtime $RUNTIME --self-contained true --output $GITHUB_WORKSPACE/outputs/$RUNTIME/ src/aggregator-cli/aggregator-cli.csproj
dotnet publish --configuration $CONFIGURATION --runtime $RUNTIME --self-contained true --output $GITHUB_WORKSPACE/outputs/$RUNTIME/ src/aggregator-cli/aggregator-cli.csproj -p:VersionPrefix=${{ steps.gitversion.outputs.majorMinorPatch }} -p:VersionSuffix=${{ steps.gitversion.outputs.preReleaseTag }}
pushd outputs/$RUNTIME && \
7z a -bd -r aggregator-cli-osx-x64.zip && \
popd
Expand Down

0 comments on commit 057718c

Please sign in to comment.