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
Liam 4d95e0ee53
Some checks failed
Release Mod / Build (push) Failing after 27s
yes
2024-08-07 07:00:57 +01:00

56 lines
1.4 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@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
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: GitStatus
run: git status
- name: Echo Filename
run: echo $BUILDTEXT \($ASSEMBLYNAME\)
env:
BUILDTEXT: Filename=${{ steps.Build.outputs.filename }}
ASSEMBLYNAME: AssemblyName=${{ steps.Build.outputs.assemblyname }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.Build.outputs.filename }}
path: ${{ steps.Build.outputs.artifactpath }}
- name: Release Mod
uses: https://gitea.com/actions/release-action@main
with:
files: ./${{ steps.Build.outputs.filename }}.zip
api_key: "${{ secrets.RELEASE_TOKEN }}"