2024-08-07 04:27:54 +00:00
|
|
|
name: Release Mod
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
2024-08-07 04:28:21 +00:00
|
|
|
paths: [".gitea/workflows/release-mod.yml", "Mod/**"]
|
2024-08-07 04:27:54 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
Build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
2024-08-07 04:31:11 +00:00
|
|
|
working-directory: "./Mod"
|
2024-08-07 04:27:54 +00:00
|
|
|
steps:
|
2024-08-07 07:01:17 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-08-07 05:57:27 +00:00
|
|
|
|
2024-08-07 06:12:04 +00:00
|
|
|
- name: Setup Running in CI Variable
|
|
|
|
run: echo "RUNNING_IN_CI=true" >> $GITHUB_ENV
|
2024-08-07 06:11:13 +00:00
|
|
|
|
2024-08-07 04:27:54 +00:00
|
|
|
- name: Setup dotnet
|
2024-08-07 07:01:18 +00:00
|
|
|
uses: actions/setup-dotnet@v4
|
2024-08-07 04:27:54 +00:00
|
|
|
with:
|
2024-08-07 05:54:45 +00:00
|
|
|
dotnet-version: 7.0.x
|
2024-08-07 05:57:27 +00:00
|
|
|
|
2024-08-07 04:27:54 +00:00
|
|
|
- name: Initialize modding environment
|
|
|
|
uses: beat-forge/init-beatsaber@v1
|
|
|
|
with:
|
|
|
|
repo: beat-forge/beatsaber-stripped
|
2024-08-07 05:57:27 +00:00
|
|
|
|
2024-08-07 04:27:54 +00:00
|
|
|
- name: Download Mod Dependencies
|
|
|
|
uses: Goobwabber/download-beatmods-deps@1.2
|
|
|
|
with:
|
2024-08-07 04:36:10 +00:00
|
|
|
manifest: ${{ gitea.workspace }}/Mod/manifest.json
|
2024-08-07 05:57:27 +00:00
|
|
|
|
2024-08-07 04:27:54 +00:00
|
|
|
- name: Build
|
|
|
|
id: Build
|
2024-08-07 04:36:10 +00:00
|
|
|
run: dotnet build ScoreTracker.csproj --configuration Release
|
2024-08-07 05:57:27 +00:00
|
|
|
|
2024-08-07 04:27:54 +00:00
|
|
|
- name: Echo Filename
|
|
|
|
run: echo $BUILDTEXT \($ASSEMBLYNAME\)
|
|
|
|
env:
|
|
|
|
BUILDTEXT: Filename=${{ steps.Build.outputs.filename }}
|
|
|
|
ASSEMBLYNAME: AssemblyName=${{ steps.Build.outputs.assemblyname }}
|
2024-08-07 05:57:27 +00:00
|
|
|
|
|
|
|
- name: Upload Artifact
|
2024-08-07 06:34:46 +00:00
|
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
2024-08-07 05:57:27 +00:00
|
|
|
with:
|
|
|
|
name: ${{ steps.Build.outputs.filename }}
|
|
|
|
path: ${{ steps.Build.outputs.artifactpath }}
|