Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
fix: proper version in application
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed May 20, 2020
1 parent 1f50b75 commit c1728a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,12 @@ jobs:
with:
token: ${{ secrets.API_GITHUB_TOKEN }}

- name: Build
if: success()
run: |
cd source
git submodule update --init --recursive
nuget restore SylphyHorn.sln
msbuild SylphyHorn.sln /p:Configuration=Release /m /verbosity:normal /p:WarningLevel=0
- name: Create ZIP
if: success()
run: |
Rename-Item -Path "source/SylphyHorn/bin/Release" -NewName "SylphyHornEx"
Compress-Archive -Path "source/SylphyHorn/bin/SylphyHornEx" -DestinationPath SylphyHornEx.zip
- name: Release
if: success()
uses: cycjimmy/semantic-release-action@v2.3.0
with:
extra_plugins: |
@semantic-release/exec@5.0.0
@semantic-release/git@9.0.0
@google/semantic-release-replace-plugin@1.0.0
env:
Expand Down
5 changes: 5 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ plugins:
- assets:
- source/SylphyHorn/Properties/AssemblyInfo.cs
message: "chore(release): ${nextRelease.version} [skip ci]"

- #
- "@semantic-release/exec"
- prepareCmd: "powershell -ep bypass -file build.ps1"

- "@semantic-release/release-notes-generator"

- #
Expand Down
7 changes: 7 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cd source
git submodule update --init --recursive
nuget restore SylphyHorn.sln
msbuild SylphyHorn.sln /p:Configuration=Release /m /verbosity:normal /p:WarningLevel=0
cd ..
Rename-Item -Path "source/SylphyHorn/bin/Release" -NewName "SylphyHornEx"
Compress-Archive -Path "source/SylphyHorn/bin/SylphyHornEx" -DestinationPath SylphyHornEx.zip

0 comments on commit c1728a6

Please sign in to comment.