Skip to content

Update release.yml

Update release.yml #56

Workflow file for this run

name: Build
on:
push:
branches: ['**']
pull_request:
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup .NET
uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore LocalRelay.slnx
- name: Publish & pack module
run: dotnet publish LocalRelay/LocalRelay.csproj --configuration Release -o publish
- name: Upload module artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: OpenShock.LocalRelay.module
path: publish/OpenShock.LocalRelay.module.zip
if-no-files-found: error