Bump Discord.Net from 3.17.4 to 3.18.0 #8
This file contains hidden or 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: .NET Core Desktop | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
tags-ignore: [ "**" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore packages | |
run: dotnet restore | |
# Get current date for release naming | |
- name: Get current date | |
id: date | |
run: echo "DATE=$(date +'%y.%m.%d')" >> $ENV:GITHUB_OUTPUT | |
# Build applications | |
- name: Build WinForms - Windows x64 | |
uses: ./.github/actions/sysbot-build | |
with: | |
dotnet: 'net8.0-windows' | |
platform: 'win-x64' | |
project: 'SysBot.Pokemon.WinForms' | |
artifact: 'winforms-windows-x64' | |
version: '${{ steps.date.outputs.DATE }}.${{ github.run_number }}' | |
- name: Build ConsoleApp - Linux arm64 | |
uses: ./.github/actions/sysbot-build | |
with: | |
dotnet: 'net8.0' | |
platform: 'linux-arm64' | |
project: 'SysBot.Pokemon.ConsoleApp' | |
artifact: 'consoleapp-linux-arm64' | |
version: '${{ steps.date.outputs.DATE }}.${{ github.run_number }}' | |
# Create pre-release | |
- name: Pre-Release | |
uses: softprops/action-gh-release@v1 | |
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' }} | |
with: | |
tag_name: ${{ steps.date.outputs.DATE }}.${{ github.run_number }} | |
prerelease: true | |
body: Pre-release, compare Git commits. | |
files: | | |
winforms-windows-x64.zip | |
consoleapp-linux-arm64.zip | |
# Create release | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} | |
with: | |
tag_name: ${{ steps.date.outputs.DATE }}.${{ github.run_number }} | |
prerelease: false | |
body: Release, compare Git commits. | |
files: | | |
winforms-windows-x64.zip | |
consoleapp-linux-arm64.zip |