Update Minerva to .NET 8 and use NuGet references instead of git modules #10
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: Create Pre-Release | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
pre-release: | |
permissions: write-all | |
name: "Pre Release" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup .NET 8 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- id: sha-short | |
name: Get short SHA | |
run: echo "::set-output name=sha-short::$(git rev-parse --short HEAD)" | |
# Publish Linux 64-bit executable | |
- name: Build Linux 64-bit | |
run: dotnet publish -c Release -r linux-x64 --output linux-x64 Minerva.sln --self-contained false | |
- name: Unzip figuredata file | |
uses: montudor/action-zip@v1 | |
with: | |
args: unzip -qq ./tools/figuredata-shockwave.zip -d linux-x64 | |
- name: Unzip badges file | |
uses: montudor/action-zip@v1 | |
with: | |
args: unzip -qq ./tools/badges.zip -d linux-x64 | |
- name: File release preparation | |
run: | | |
sudo cp tools/badge_resource.json linux-x64 | |
- name: Compress release files | |
uses: montudor/action-zip@v1 | |
with: | |
args: zip -qq -r ./Minerva-linux-x64.zip linux-x64 | |
# Publish Windows 64-bit executable | |
- name: Build Windows 64-bit | |
run: dotnet publish -c Release -r win-x64 --output win-x64 Minerva.sln --self-contained false | |
- name: Unzip figuredata file | |
uses: montudor/action-zip@v1 | |
with: | |
args: unzip -qq ./tools/figuredata-shockwave.zip -d win-x64 | |
- name: Unzip badges file | |
uses: montudor/action-zip@v1 | |
with: | |
args: unzip -qq ./tools/badges.zip -d win-x64 | |
- name: File release preparation | |
run: | | |
sudo cp tools/badge_resource.json win-x64 | |
- name: Compress release files | |
uses: montudor/action-zip@v1 | |
with: | |
args: zip -qq -r ./Minerva-win-x64.zip win-x64 | |
# Create latest tag | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: true | |
title: "Development Build ${{ steps.sha-short.outputs.sha-short }}" | |
files: | | |
Minerva-linux-x64.zip | |
Minerva-win-x64.zip |