Skip to content

Commit

Permalink
Add version to version.txt in release workflow (#384) #patch
Browse files Browse the repository at this point in the history
* Add version to version.txt

* Replace VersionOutputter with commonItems solution

* Update commonItems.NET
  • Loading branch information
IhateTrains authored Nov 13, 2021
1 parent a58b777 commit 4c0c53a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 27 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.*'
- name: "Add version to version.txt"
shell: bash
run: |
cd ImperatorToCK3/Data_Files/configurables
printf "\n${{ steps.previoustag.outputs.tag }}" >> version.txt
- name: "Build backend"
run: |
cd ImperatorToCK3
Expand Down
24 changes: 0 additions & 24 deletions ImperatorToCK3/Outputter/VersionOutputter.cs

This file was deleted.

3 changes: 1 addition & 2 deletions ImperatorToCK3/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using commonItems;
using ImperatorToCK3.Outputter;
using System;

namespace ImperatorToCK3 {
Expand All @@ -8,7 +7,7 @@ private static int Main(string[] args) {
try {
var converterVersion = new ConverterVersion();
converterVersion.LoadVersion("configurables/version.txt");
VersionOutputter.LogConverterVersion(converterVersion);
Logger.Info(converterVersion.ToString());
if (args.Length > 0) {
Logger.Warn("ImperatorToCK3 takes no parameters.");
Logger.Warn("It uses configuration.txt, configured manually or by the frontend.");
Expand Down
2 changes: 1 addition & 1 deletion commonItems.NET

0 comments on commit 4c0c53a

Please sign in to comment.