Skip to content

Build and Release

Build and Release #5

Workflow file for this run

name: Build and Release
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build for Windows x64
run: dotnet publish Blue-Archive-Catalog-Converter/Blue-Archive-Catalog-Converter.csproj -r win-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true --sc true --artifacts-path output
- name: Build for Linux x64
run: dotnet publish Blue-Archive-Catalog-Converter/Blue-Archive-Catalog-Converter.csproj -r linux-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true --sc true --artifacts-path output
- name: Release to Github
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
output/publish/Blue-Archive-Catalog-Converter/release_win-x64/Blue-Archive-Catalog-Converter.exe
output/publish/Blue-Archive-Catalog-Converter/release_linux-x64/Blue-Archive-Catalog-Converter