Skip to content

Don't allow renaming users to already taken usernames, fix not being able to rename fake users #2749

Don't allow renaming users to already taken usernames, fix not being able to rename fake users

Don't allow renaming users to already taken usernames, fix not being able to rename fake users #2749

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build and Test
on:
push:
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build, Test, and Upload Builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Set VERSION variable from tag (for tag pushes)
if: ${{ contains(github.ref, 'refs/tags') }}
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Set VERSION variable from tag (for normal commits)
if: ${{ !contains(github.ref, 'refs/tags') }}
run: echo "VERSION=0.0.0" >> $GITHUB_ENV
- name: Print VERSION variable for debugging
run: echo "$VERSION"
- name: Test
run: dotnet test -c Release --verbosity normal
- name: Publish for Linux x64
run: dotnet publish -c Release -r linux-x64 --self-contained Refresh.GameServer /p:Version=${VERSION}
- name: Publish for Windows x64
run: dotnet publish -c Release -r win-x64 --self-contained Refresh.GameServer /p:Version=${VERSION}
- name: Upload Linux x64 build
uses: actions/upload-artifact@v4
with:
name: "Refresh for Linux x64"
path: "Refresh.GameServer/bin/Release/net9.0/linux-x64/publish/"
if-no-files-found: error
retention-days: 30
- name: Upload Windows x64 build
uses: actions/upload-artifact@v4
with:
name: "Refresh for Windows x64"
path: "Refresh.GameServer/bin/Release/net9.0/win-x64/publish/"
if-no-files-found: error
retention-days: 30