Skip to content

Merge pull request #78 from MiguelDomingues/dependabot/nuget/Markdig-… #63

Merge pull request #78 from MiguelDomingues/dependabot/nuget/Markdig-…

Merge pull request #78 from MiguelDomingues/dependabot/nuget/Markdig-… #63

Workflow file for this run

name: "Release"
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.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: |
mkdir publish
dotnet publish --no-restore -c Release -o ./publish/windows -r win10-x64 --self-contained /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true /p:PublishReadyToRun=false /p:PublishTrimmed=false src/MarkdownLocalize.CLI
dotnet publish --no-restore -c Release -o ./publish/osx -r osx.10.11-x64 --self-contained /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true /p:PublishReadyToRun=false /p:PublishTrimmed=false src/MarkdownLocalize.CLI
dotnet publish --no-restore -c Release -o ./publish/linux -r linux-x64 --self-contained /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true /p:PublishReadyToRun=false /p:PublishTrimmed=false src/MarkdownLocalize.CLI
mv publish/windows/MarkdownLocalize.CLI.exe publish/md-localize-windows.exe
mv publish/osx/MarkdownLocalize.CLI publish/md-localize-osx
mv publish/linux/MarkdownLocalize.CLI publish/md-localize-linux
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
publish/md-localize-linux
publish/md-localize-osx
publish/md-localize-windows.exe