Skip to content

Commit

Permalink
Update deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DiFFoZ authored Sep 20, 2020
1 parent f11083b commit 1acbcef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
name: Checkout Repository
with:
fetch-depth: 0
- name: Extract version
id: get_version
run: echo ::set-output name=VERSION::$(git describe --tags)
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
Expand All @@ -25,7 +28,7 @@ jobs:
- name: Install dependencies
run: dotnet restore
- name: Update version
run: "sed -i \"s#<Version>0.0.0</Version>#<Version>${{ steps.get-release.outputs.tag_name }}</Version>#\" Dummy/Dummy.csproj"
run: "sed -i \"s#<Version>0.0.0</Version>#<Version>${{ steps.get_version.outputs.VERSION }}</Version>#\" Dummy/Dummy.csproj"
- name: Build
run: dotnet build Dummy/Dummy.csproj --configuration Release --no-restore
- name: Upload release asset
Expand Down

0 comments on commit 1acbcef

Please sign in to comment.