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:
|
|
|
|
- uses: actions/checkout@v3
|
2024-08-07 04:34:16 +00:00
|
|
|
- name: print working directory contents
|
|
|
|
run: ls -la
|
2024-08-07 04:27:54 +00:00
|
|
|
- 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:
|
2024-08-07 04:32:40 +00:00
|
|
|
manifest: ./manifest.json
|
2024-08-07 04:27:54 +00:00
|
|
|
- name: Build
|
|
|
|
id: Build
|
|
|
|
run: dotnet build --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@v1
|
|
|
|
# with:
|
|
|
|
# name: ${{ steps.Build.outputs.filename }}
|
|
|
|
# path: ${{ steps.Build.outputs.artifactpath }}
|
|
|
|
# - name: Release
|
|
|
|
# uses: softprops/action-gh-release@v1
|
|
|
|
# if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
# with:
|
|
|
|
# files: ./${{ steps.Build.outputs.filename }}.zip
|
|
|
|
# env:
|
|
|
|
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|