Skip to content

Load and save settings #53

Load and save settings

Load and save settings #53

Workflow file for this run

name: .NET Core
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
publish:
needs: build
if: github.ref == 'refs/heads/main'
runs-on: macos-latest
env:
releaseVersion: 0.0.0.${{ github.run_number }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
# Publish osx-x64
- name: Publish osx-x64
run: dotnet publish -r osx-x64 -p:Configuration=Release -p:DebugType=None -p:DebugSymbols=false -p:Version=${{env.releaseVersion}}
- name: Archive osx-x64
uses: actions/upload-artifact@v1
with:
name: PurpleExplorer_osx-x64
path: PurpleExplorer/bin/Release/net6.0/osx-x64/publish
# Publish osx-arm64
- name: Publish osx-arm64
run: dotnet publish -r osx-arm64 -p:Configuration=Release -p:DebugType=None -p:DebugSymbols=false -p:Version=${{env.releaseVersion}}
- name: Archive osx-arm64
uses: actions/upload-artifact@v1
with:
name: PurpleExplorer_osx-arm64
path: PurpleExplorer/bin/Release/net6.0/osx-arm64/publish
# Publish win-x64
- name: Publish win-x64
run: dotnet publish -r win-x64 -p:Configuration=Release -p:DebugType=None -p:DebugSymbols=false -p:Version=${{env.releaseVersion}}
- name: Archive win-x64
uses: actions/upload-artifact@v1
with:
name: PurpleExplorer_win-x64
path: PurpleExplorer/bin/Release/net6.0/win-x64/publish
# Publish linux-x64
- name: Publish linux-x64
run: dotnet publish -r linux-x64 -p:Configuration=Release -p:DebugType=None -p:DebugSymbols=false -p:Version=${{env.releaseVersion}}
- name: Archive linux-x64
uses: actions/upload-artifact@v1
with:
name: PurpleExplorer_linux-x64
path: PurpleExplorer/bin/Release/net6.0/linux-x64/publish