Pine 0.3.27 #69
Workflow file for this run
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: Publish to Release | |
on: | |
workflow_dispatch: | |
release: | |
types: [published, unpublished] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
environment: [ubuntu-24.04, windows-2022, macos-13] | |
include: | |
- environment: ubuntu-24.04 | |
publish-runtime-id: linux-x64 | |
- environment: windows-2022 | |
publish-runtime-id: win-x64 | |
- environment: macos-13 | |
publish-runtime-id: osx-x64 | |
runs-on: ${{ matrix.environment }} | |
steps: | |
- uses: olegtarasov/get-tag@v2.1.2 | |
id: tagName | |
- name: Avoid git mutating files on checkout | |
run: | | |
git config --global core.autocrlf false | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.403' | |
- name: Try use dotnet | |
run: dotnet --info | |
- name: Clean package cache as a temporary workaround for /~https://github.com/actions/setup-dotnet/issues/155 | |
run: dotnet clean ./implement/test-elm-time/test-elm-time.csproj && dotnet nuget locals all --clear | |
- name: Prebuild | |
working-directory: ./implement/ | |
run: | | |
dotnet run --project ./prebuild/prebuild.csproj | |
- name: dotnet publish | |
run: dotnet publish -c Release -r ${{ matrix.publish-runtime-id }} --self-contained true -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:PublishReadyToRunShowWarnings=true --output ./dotnet-build ./implement/pine | |
- name: Copy artifacts to publish | |
shell: pwsh | |
run: | | |
New-Item -ItemType Directory -Force -Path "./publish"; | |
Get-ChildItem -Path "./dotnet-build/" -Filter "pine*" | ForEach-Object { Copy-Item -Path $_.FullName -Destination "./publish/" } | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pine-bin-${{ steps.tagName.outputs.tag }}-${{ matrix.publish-runtime-id }} | |
path: ./publish | |