doc - Don't reiterate pull request template~ #3
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 Project (Linux) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.ref }} | |
- name: Setup .NET 6.0 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Solution Compilation | |
run: dotnet build --configuration Debug | |
- name: Testing | |
run: dotnet test --configuration Debug | |
- uses: actions/upload-artifact@v3 | |
if: success() || failure() | |
with: | |
name: bb-build | |
path: "BassBoom.Desktop/bin/Debug/" | |
notify: | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
if: ${{ always() }} | |
steps: | |
- name: Notify | |
uses: nobrayner/discord-webhook@v1 | |
with: | |
github-token: ${{ secrets.G_TOKEN }} | |
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }} | |