Update build.yml to add built artifact #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |