Skip to content

1.1.4

1.1.4 #13

Workflow file for this run

name: Publish
on:
release:
types: [ published ]
jobs:
build:
strategy:
matrix:
os: [ { os: windows-latest, runtime: win-x64 }, { os: windows-latest, runtime: win-x86 }, { os: ubuntu-latest, runtime: linux-x64 } ]
runs-on: ${{ matrix.os.os }}
name: Publish on ${{ matrix.os.os }}
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: Publish ${{ matrix.os.runtime }}
run: dotnet publish Src/RandomizerTMF -c Release -f net8.0 -r ${{ matrix.os.runtime }} -o RandomizerTMF --self-contained
- name: Zip to RandomizerTMF.${{ github.ref_name }}.${{ matrix.os.runtime }}.zip
uses: thedoctor0/zip-release@main
with:
path: RandomizerTMF
filename: RandomizerTMF.${{ github.ref_name }}.${{ matrix.os.runtime }}.zip
- name: SHA256 checksum
uses: Huy-Ngo/gha-sha@v1.1.0
with:
glob: RandomizerTMF.${{ github.ref_name }}.${{ matrix.os.runtime }}.zip
- name: Upload RandomizerTMF.${{ github.ref_name }}.${{ matrix.os.runtime }}.zip to latest release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: RandomizerTMF.${{ github.ref_name }}.${{ matrix.os.runtime }}.zip
tag: ${{ github.ref }}
overwrite: true
body: |
${{ github.event.release.body }}
The ZIP was automatically generated using the [publish workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).