Skip to content

Commit

Permalink
Workflows attempt 6
Browse files Browse the repository at this point in the history
  • Loading branch information
thesupersonic16 committed Sep 9, 2023
1 parent 795c9ba commit d1edad8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Windows Build

on:
push:
branches:
- master
branches: [master]
pull_request:
branches: [master]

env:
# Path to the solution file relative to the root of the project.
Expand All @@ -26,7 +27,7 @@ jobs:
- name: Add MSBuild to PATH
uses: microsoft/[email protected]

- name: Restore NuGet packages
- name: Restore NuGet Packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}

Expand All @@ -36,16 +37,12 @@ jobs:
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{matrix.configuration}} ${{env.SOLUTION_FILE_PATH}}

- name: Upload artifacts
- name: Prepare Artifacts
working-directory: ${{env.GITHUB_WORKSPACE}}
run: .\DALTools\Scripts\PrepareArtifacts.bat ${{matrix.configuration}}

- name: Upload Artifacts
uses: actions/[email protected]
with:
name: DALTools-${{matrix.configuration}}
path: |
DALTools\DALLib\bin\${{matrix.configuration}}\*DALLib.dll
DALTools\PCKTool\bin\${{matrix.configuration}}\*PCKTool.exe
DALTools\STSCTool\bin\${{matrix.configuration}}\*STSCTool.exe
DALTools\TEXTool\bin\${{matrix.configuration}}\*TEXTool.exe
DALTools\FontEditor\bin\${{matrix.configuration}}\*FontEditor.exe
DALTools\ScriptDatabaseEditor\bin\${{matrix.configuration}}\*ScriptDatabaseEditor.exe
DALTools\ScriptDialogueEditor\bin\${{matrix.configuration}}\*ScriptDialogueEditor.exe
DALTools\TableEditor\bin\${{matrix.configuration}}\*TableEditor.exe
path: ${{env.GITHUB_WORKSPACE}}\Artifacts
9 changes: 0 additions & 9 deletions DALTools/PrepareRelease.bat

This file was deleted.

9 changes: 9 additions & 0 deletions Scripts/PrepareArtifacts.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
mkdir .\Artifacts
copy .\DALTools\DALTools\DALLib\bin\%1\DALLib.dll .\Artifacts\DALLib.dll
copy .\DALTools\DALTools\PCKTool\bin\%1\PCKTool.exe .\Artifacts\PCKTool.exe
copy .\DALTools\DALTools\STSCTool\bin\%1\STSCTool.exe .\Artifacts\STSCTool.exe
copy .\DALTools\DALTools\TEXTool\bin\%1\TEXTool.exe .\Artifacts\TEXTool.exe
copy .\DALTools\DALTools\FontEditor\bin\%1\FontEditor.exe .\Artifacts\FontEditor.exe
copy .\DALTools\DALTools\ScriptDatabaseEditor\bin\%1\ScriptDatabaseEditor.exe .\Artifacts\ScriptDatabaseEditor.exe
copy .\DALTools\DALTools\ScriptDialogueEditor\bin\%1\ScriptDialogueEditor.exe .\Artifacts\ScriptDialogueEditor.exe
copy .\DALTools\DALTools\TableEditor\bin\%1\TableEditor.exe .\Artifacts\TableEditor.exe

0 comments on commit d1edad8

Please sign in to comment.