Skip to content

Update to .NET 9. Add server status in tooltip. #30

Update to .NET 9. Add server status in tooltip.

Update to .NET 9. Add server status in tooltip. #30

Workflow file for this run

name: .NET CI
on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
tags:
- 'v*'
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Publish SelfContained
run: dotnet publish -r win-x64 --self-contained -o publish-selfcontained -p:PublishSingleFile=true ReadySetTarkov\ReadySetTarkov.csproj
- name: Publish .NET Desktop
run: dotnet publish -r win-x64 --no-self-contained -o publish-desktop -p:PublishSingleFile=true ReadySetTarkov\ReadySetTarkov.csproj
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: ReadySetTarkov
path: publish-selfcontained
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: ReadySetTarkov-NETDesktop
path: publish-desktop
- name: Zip
run: Compress-Archive "publish-selfcontained\*" -DestinationPath "ReadySetTarkov.zip" -CompressionLevel Optimal
- name: Zip
run: Compress-Archive "publish-desktop\*" -DestinationPath "ReadySetTarkov-NETDesktop.zip" -CompressionLevel Optimal
# Create a new release: create a tag, then 'git push origin <tagname>', wait for it to build
- name: Create a new GitHub release if a new tag is pushed
uses: softprops/[email protected]
with:
files: |
ReadySetTarkov.zip
ReadySetTarkov-NETDesktop.zip
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}