Skip to content

Commit for v1.3.0-preview-04 #44

Commit for v1.3.0-preview-04

Commit for v1.3.0-preview-04 #44

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: CsvImporter / Create artifacts
on:
push:
tags:
- "v*.*.*"
- "v*.*.*-*"
workflow_dispatch:
permissions:
packages: read
jobs:
create-artifacts:
name: Create artifacts
runs-on: ubuntu-latest
strategy:
matrix:
runtime-identifier: [ linux-x64, linux-arm64, win-x64, win-arm64, osx-x64, osx-arm64 ]
env:
DOTNET_NOLOGO: true
IS_ARTIFACT_BUILD: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Install .NET tools
run: dotnet tool restore
- name: Update project files with GitVersion
run: dotnet tool run dotnet-gitversion /updateprojectfiles
- name: Compile project
shell: pwsh
run: |
dotnet publish ./src/Tools/CsvImporter/ --configuration "Release" --runtime "${{ matrix.runtime-identifier }}";
dotnet publish ./src/Tools/CsvImporter.ConfigTool/ --configuration "Release" --runtime "${{ matrix.runtime-identifier }}"
- name: Create artifact
uses: actions/upload-artifact@v4
with:
name: "CsvImporter_${{ matrix.runtime-identifier }}_${{ github.ref_type == 'tag' && github.ref_name || github.sha }}"
path: ${{ github.workspace }}/artifacts/publish/CsvImporterFull/release_${{ matrix.runtime-identifier }}/**/*
if-no-files-found: error