LSO will operate on copy of statics (fix delete/move) #77
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 & Release | |
on: | |
push: | |
branches: "master" | |
paths-ignore: | |
- '**/README.md' | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+.[0-9]+" | |
pull_request: | |
branches: "*" | |
paths-ignore: | |
- '**/README.md' | |
env: | |
DOTNET_NOLOGO: false | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
jobs: | |
build: | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
matrix: | |
runner: [ windows-latest, ubuntu-latest, macos-latest ] | |
project: [ Server ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Publish | |
run: dotnet publish ${{ matrix.project }} -c Release -o release -p:PublishSingleFile=true --self-contained false '-p:DebugType=None' | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.project }}-${{ runner.os }}-${{ runner.arch }} | |
path: ${{ github.workspace }}/release/* | |
release: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Download build artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
path: artifacts/ | |
- name: Install zip | |
uses: montudor/action-zip@v1 | |
- name: Create archives | |
run: | | |
mkdir release | |
for arch in Linux Windows macOS; do | |
zip -qq -r release/Cedserver-$arch-x64.zip artifacts/Server-$arch-X64/ | |
done | |
- name: Create Release | |
uses: ncipollo/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
artifacts: release/* | |
generateReleaseNotes: true | |
skipIfReleaseExists: true | |
- name: Create Dev Release | |
uses: ncipollo/[email protected] | |
if: github.ref == 'refs/heads/master' | |
with: | |
allowUpdates: true | |
artifacts: release/* | |
generateReleaseNotes: false | |
makeLatest: true | |
prerelease: true | |
replacesArtifacts: true | |
tag: dev | |