Skip to content

Commit

Permalink
Use GitHub runners instead of selfhosted
Browse files Browse the repository at this point in the history
  • Loading branch information
DaXcess committed Sep 10, 2024
1 parent b0df446 commit 54e369c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build-debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ on:

jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest
env:
DOTNET_INSTALL_DIR: ~/.dotnet

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0

- name: Set up variables
id: vars
Expand All @@ -35,19 +38,26 @@ jobs:
- name: Build app
run: dotnet build

- name: Configure GPG Key
run: |
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}

- name: Prepare and bundle package
run: |
# Set up template
unzip ~/lcvr/package-template.zip -d ./package
mkdir package
git --work-tree=./package checkout origin/thunderstore ./
# Copy and sign debug binaries
cp bin/Debug/netstandard2.1/LCVR.dll ./package/BepInEx/plugins/LCVR/
cp bin/Debug/netstandard2.1/LCVR.Preload.dll ./package/BepInEx/patchers/LCVR/
gpg --output ./package/BepInEx/plugins/LCVR/LCVR.dll.sig --detach-sig ./package/BepInEx/plugins/LCVR/LCVR.dll
gpg --output ./package/BepInEx/patchers/LCVR/LCVR.Preload.dll.sig --detach-sig ./package/BepInEx/patchers/LCVR/LCVR.Preload.dll
# Copy assets
cp ~/lcvr/lethalcompanyvr ./package/BepInEx/plugins/LCVR/lethalcompanyvr
# Move assets
cp ./package/lethalcompanyvr ./package/BepInEx/plugins/LCVR/lethalcompanyvr
# Copy docs and license
cp CHANGELOG.md ./package/CHANGELOG.md
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ on:

jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest
env:
DOTNET_INSTALL_DIR: ~/.dotnet

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0

- name: Set up variables
id: vars
Expand All @@ -41,19 +44,26 @@ jobs:
- name: Build app
run: dotnet build -c Release

- name: Configure GPG Key
run: |
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}

- name: Prepare and bundle package
run: |
# Set up template
unzip ~/lcvr/package-template.zip -d ./package
mkdir package
git --work-tree=./package checkout origin/thunderstore ./
# Copy and sign release binaries
cp bin/Release/netstandard2.1/LCVR.dll ./package/BepInEx/plugins/LCVR/
cp bin/Release/netstandard2.1/LCVR.Preload.dll ./package/BepInEx/patchers/LCVR/
gpg --output ./package/BepInEx/plugins/LCVR/LCVR.dll.sig --detach-sig ./package/BepInEx/plugins/LCVR/LCVR.dll
gpg --output ./package/BepInEx/patchers/LCVR/LCVR.Preload.dll.sig --detach-sig ./package/BepInEx/patchers/LCVR/LCVR.Preload.dll
# Copy assets
cp ~/lcvr/lethalcompanyvr ./package/BepInEx/plugins/LCVR/lethalcompanyvr
# Move assets
cp ./package/lethalcompanyvr ./package/BepInEx/plugins/LCVR/lethalcompanyvr
# Copy docs and license
cp CHANGELOG.md ./package/CHANGELOG.md
Expand Down

0 comments on commit 54e369c

Please sign in to comment.