Skip to content

Commit

Permalink
ci: unify workflows a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmoecker committed Jan 19, 2025
1 parent af5010c commit 1282b11
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:

# Prepare Valheim dependencies
- name: Prepare Valheim dependencies
if: steps.cachevalheim.outputs.cache-hit != 'true'
run: |
mkdir -p ~/VHINSTALL
wget -O bepinex.zip "https://thunderstore.io/package/download/denikson/BepInExPack_Valheim/5.4.2202/"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ jobs:
mv ~/VHINSTALL/valheim_server_Data/ ~/VHINSTALL/valheim_Data/
mv ~/BepInExRaw/BepInExPack_Valheim/* ~/VHINSTALL/
- name: remove old hash, publicized dlls and mmhook dlls
- name: Remove old publicized dlls from cache
if: steps.cachevalheim.outputs.cache-hit != 'true'
run: |
rm -rf ~/VHINSTALL/valheim_Data/Managed/publicized_assemblies
rm -rf ~/VHINSTALL/valheim_server_Data/Managed/publicized_assemblies
rm -rf ~/VHINSTALL/BepInEx/plugins/MMHOOK
- name: Set references to DLLs
run: |
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,29 @@ jobs:
run: |
wget -O bepinex.zip "https://thunderstore.io/package/download/denikson/BepInExPack_Valheim/5.4.2202/"
unzip bepinex.zip -d ~/BepInExRaw
steamcmd +login anonymous +force_install_dir ~/VHINSTALL +app_update 896660 validate +exit
steamcmd +force_install_dir ~/VHINSTALL +login anonymous +app_update 896660 validate +exit
mv ~/VHINSTALL/valheim_server_Data/ ~/VHINSTALL/valheim_Data/
mv ~/BepInExRaw/BepInExPack_Valheim/* ~/VHINSTALL/
- name: remove old hash, publicized dlls and mmhook dlls
- name: Remove old publicized dlls from cache
if: steps.cachevalheim.outputs.cache-hit != 'true'
run: |
rm -rf ~/VHINSTALL/valheim_Data/Managed/publicized_assemblies
rm -rf ~/VHINSTALL/valheim_server_Data/Managed/publicized_assemblies
rm -rf ~/VHINSTALL/BepInEx/plugins/MMHOOK
- name: Set references to DLLs
run: |
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?><Project ToolsVersion=\"Current\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\"><PropertyGroup><VALHEIM_INSTALL>$HOME/VHINSTALL/</VALHEIM_INSTALL></PropertyGroup></Project>" > Environment.props
# Gitvers
# Gitversion
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v3.1.2
uses: gittools/actions/gitversion/setup@v3
with:
versionSpec: "5.x"

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v3.1.2
uses: gittools/actions/gitversion/execute@v3
with:
useConfigFile: true
configFilePath: JotunnLib/GitVersion.yml
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build_release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down Expand Up @@ -58,12 +58,11 @@ jobs:
mv ~/VHINSTALL/valheim_server_Data/ ~/VHINSTALL/valheim_Data/
mv ~/BepInExRaw/BepInExPack_Valheim/* ~/VHINSTALL/
- name: Remove old publicized and mmhook dlls from cache
- name: Remove old publicized dlls from cache
if: steps.cachevalheim.outputs.cache-hit != 'true'
run: |
rm -rf ~/VHINSTALL/valheim_Data/Managed/publicized_assemblies
rm -rf ~/VHINSTALL/valheim_server_Data/Managed/publicized_assemblies
rm -rf ~/VHINSTALL/BepInEx/plugins/MMHOOK
- name: Create Environment.props
run: |
Expand Down

0 comments on commit 1282b11

Please sign in to comment.