Commit for v1.1.0 #34
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
# 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: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
env: | |
DOTNET_NOLOGO: 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 (Windows) | |
if: ${{ runner.os == 'Windows' }} | |
shell: pwsh | |
run: | | |
dotnet publish ./src/Tools/CsvImporter/ --configuration "Release" --runtime "win-x64"; | |
Remove-Item -Path "./artifacts/publish/CsvImporter/release_win-x64/*.pdb" -Recurse -Force -Verbose | |
- name: Compile project (Linux) | |
if: ${{ runner.os == 'Linux' }} | |
shell: pwsh | |
run: | | |
dotnet publish ./src/Tools/CsvImporter/ --configuration "Release" --runtime "linux-x64"; | |
Remove-Item -Path "./artifacts/publish/CsvImporter/release_linux-x64/*.pdb" -Recurse -Force -Verbose; | |
Remove-Item -Path "./artifacts/publish/CsvImporter/release_linux-x64/*.dbg" -Recurse -Force -Verbose | |
- name: Create artifact (Windows) | |
uses: actions/upload-artifact@v4 | |
if: ${{ runner.os == 'Windows' }} | |
with: | |
name: "CsvImporter_win-x64_${{ github.ref_type == 'tag' && github.ref_name || github.sha }}" | |
path: ${{ github.workspace }}/artifacts/publish/CsvImporter/release_win-x64/**/* | |
if-no-files-found: error | |
- name: Create artifact (Linux) | |
uses: actions/upload-artifact@v4 | |
if: ${{ runner.os == 'Linux' }} | |
with: | |
name: "CsvImporter_linux-x64_${{ github.ref_type == 'tag' && github.ref_name || github.sha }}" | |
path: ${{ github.workspace }}/artifacts/publish/CsvImporter/release_linux-x64/**/* | |
if-no-files-found: error |