This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
beatsaber-scoretracker/.gitea/workflows/release-mod.yml
Lee ea0e4bd20a
All checks were successful
Release Mod / Build (push) Successful in 28s
Merge pull request 'Update actions/checkout action to v4' (#10) from renovate/actions-checkout-4.x into master
Reviewed-on: #10
2024-08-07 07:44:10 +00:00

50 lines
1.3 KiB
YAML

name: Release Mod
on:
push:
branches: [master]
paths: [".gitea/workflows/release-mod.yml", "Mod/**"]
jobs:
Build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./Mod"
steps:
- uses: actions/checkout@v4
- name: Setup Running in CI Variable
run: echo "RUNNING_IN_CI=true" >> $GITHUB_ENV
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Initialize modding environment
uses: beat-forge/init-beatsaber@v1
with:
repo: beat-forge/beatsaber-stripped
- name: Download Mod Dependencies
uses: Goobwabber/download-beatmods-deps@1.2
with:
manifest: ${{ gitea.workspace }}/Mod/manifest.json
- name: Build
id: Build
run: dotnet build ScoreTracker.csproj --configuration Release
- name: Echo Filename
run: echo $BUILDTEXT \($ASSEMBLYNAME\)
env:
BUILDTEXT: Filename=${{ steps.Build.outputs.filename }}
ASSEMBLYNAME: AssemblyName=${{ steps.Build.outputs.assemblyname }}
- name: Upload Artifact
uses: christopherhx/gitea-upload-artifact@v4
with:
name: ${{ steps.Build.outputs.filename }}
path: ${{ steps.Build.outputs.artifactpath }}