2022-06-10 16:14:09 -05:00
|
|
|
name: 'Build Plugin'
|
2022-06-10 16:19:07 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-11-26 01:39:46 -06:00
|
|
|
branches: [ "master", "analyzers" ]
|
2022-06-10 16:19:07 -05:00
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-06-10 16:25:44 -05:00
|
|
|
|
2022-06-10 16:19:07 -05:00
|
|
|
- name: Setup .NET
|
2023-10-02 13:06:47 +00:00
|
|
|
uses: actions/setup-dotnet@v3
|
2022-06-10 16:19:07 -05:00
|
|
|
with:
|
|
|
|
dotnet-version: 6.0.x
|
2022-06-10 16:25:44 -05:00
|
|
|
|
2022-06-10 16:19:07 -05:00
|
|
|
- name: Restore dependencies
|
|
|
|
run: dotnet restore
|
2022-06-10 16:25:44 -05:00
|
|
|
|
2022-06-12 16:57:15 -05:00
|
|
|
- name: Embed version info
|
|
|
|
run: echo "${{ github.sha }}" > ConfusedPolarBear.Plugin.IntroSkipper/Configuration/version.txt
|
|
|
|
|
2022-06-10 16:19:07 -05:00
|
|
|
- name: Build
|
|
|
|
run: dotnet build --no-restore
|
2022-06-10 23:08:27 -05:00
|
|
|
|
2022-06-10 16:47:46 -05:00
|
|
|
- name: Upload artifact
|
2023-10-02 13:06:42 +00:00
|
|
|
uses: actions/upload-artifact@v3.1.3
|
2022-06-10 16:47:46 -05:00
|
|
|
with:
|
|
|
|
name: intro-skipper-${{ github.sha }}.dll
|
|
|
|
path: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
|
|
|
|
if-no-files-found: error
|