Skip to content

Update build.yml to add built artifact #2

Update build.yml to add built artifact

Update build.yml to add built artifact #2

Workflow file for this run

name: Build the plugin
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
# Add a step to publish the built DLL as an artifact
- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: RetakesPlugin-${{ github.sha }} # Name of the artifact (with the commit hash)
path: /bin/Debug/net7.0/RetakesPlugin.dll # Replace with the actual path to your built DLL