Skip to content

Use no cancellation token #111

Use no cancellation token

Use no cancellation token #111

Workflow file for this run

name: .NET
on:
push:
branches: ["*"]
tags: ["*"]
pull_request:
branches: ["*"]
env:
SAPISID: ${{ secrets.SAPISID }}
PSID: ${{ secrets.PSID }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
publish:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
- name: publish win
run: dotnet publish -c Release -r win-x64 --no-self-contained
- name: install zip
run: sudo apt install zip
- name: zip win
run: zip -r Tobi-windows.zip DiscordBot/bin/Release/net8.0/win-x64/publish
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
Tobi-windows.zip
Tobi-mac.zip
Tobi-ubuntu.zip