Skip to content

Commit

Permalink
Fix build workflow
Browse files Browse the repository at this point in the history
 - Upgrade deprecated actions
 - Downgrade Ubuntu
 - Tweak NuGet workarounds
 - Update thunderstore URLs
  • Loading branch information
joeyparrish committed Jan 7, 2025
1 parent 4c20633 commit ddcb278
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -31,14 +31,14 @@ jobs:
- name: Install NuGet dependencies
run: |
# Fixes weird permission errors that started in GitHub Actions
# environments on June 14th:
sudo chown -R $USER /tmp/NuGetScratch/
# environments on January 24th 2023:
sudo chown -R $USER ~/.config/NuGet/
nuget restore Pokeheim.sln
- name: Cache Valheim
id: cachevalheim
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/VHINSTALL
key: ${{ steps.valheimversion.outputs.valheimversion }}-${{ hashFiles('**/lockfiles') }}-BepInExPack-${{ steps.bepinexversion.outputs.bepinexversion }}
Expand All @@ -50,12 +50,12 @@ jobs:
- name: Prepare Pokeheim dependencies
if: steps.cachevalheim.outputs.cache-hit != 'true'
run: |
wget -O bepinex.zip "https://valheim.thunderstore.io/package/download/denikson/BepInExPack_Valheim/${{ steps.bepinexversion.outputs.bepinexversion }}/"
wget -O bepinex.zip "https://thunderstore.io/package/download/denikson/BepInExPack_Valheim/${{ steps.bepinexversion.outputs.bepinexversion }}/"
unzip bepinex.zip -d ~/BepInExRaw
steamcmd +login anonymous +force_install_dir ~/VHINSTALL +app_update 896660 validate +exit
mv ~/VHINSTALL/valheim_server_Data/ ~/VHINSTALL/valheim_Data/
mv ~/BepInExRaw/BepInExPack_Valheim/* ~/VHINSTALL/
wget -O mountup.zip "https://valheim.thunderstore.io/package/download/Oran1/Mountup/3.2.9/"
wget -O mountup.zip "https://thunderstore.io/package/download/Oran1/Mountup/3.2.9/"
unzip mountup.zip -d ~/VHINSTALL/BepInEx/plugins/
- name: Remove old DLLs
Expand Down Expand Up @@ -84,15 +84,15 @@ jobs:
run: |
RELEASE_VERSION="${RELEASE_VERSION:-0.0.1}" ./scripts/package.sh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
# Will result in Pokeheim.zip
name: Pokeheim
# Everything in this folder will be archived, but not the folder
path: staging/

- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: Pokeheim.zip

0 comments on commit ddcb278

Please sign in to comment.