Skip to content

Build & Deploy

Build & Deploy #25

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 & Deploy
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish
run: dotnet publish -c Release -o out -r win-x64
- name: Copy utility files
run: cp -r ./Utility/* ./out/
- name: Zip binaries
run: |
cd out
zip -r ../Runtime-Importer.zip .
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: manual-${{ github.run_number }}
files: Runtime-Importer.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}