Skip to content

Updated file uploader to look at the .net 8.0 folder and not .net 6.0 #44

Updated file uploader to look at the .net 8.0 folder and not .net 6.0

Updated file uploader to look at the .net 8.0 folder and not .net 6.0 #44

Workflow file for this run

name: .NET CI
on:
push:
# Pattern matched against refs/tags
branches: master
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
BUILD_ID: ${{ steps.buildnumber.outputs.build_number }}
SHA_SHORT: ${{ steps.commithash.outputs.sha_short }}
RELEASE_ID: ${{ steps.release.outputs.release_id }}
steps:
- uses: actions/checkout@v2
- name: Set outputs
id: commithash
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Generate build number
id: buildnumber
uses: einaregilsson/build-number@v3
with:
token: ${{ secrets.github_token }}
- name: Create a release
id: release
uses: KotwOSS/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
skip_errors: true
draft: true
prerelease: true
tag: "build_${{ steps.buildnumber.outputs.build_number }}"
release_name: "build:${{ steps.commithash.outputs.sha_short }}"
release_body: "This is an automated build"
buildMatrix:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: prepare
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
build: dotnet publish -c release -r linux-x64 -p:PublishSingleFile=true --self-contained true
filemap: |
KekUploadCLIClient/bin/Release/net8.0/linux-x64/publish/KekUploadCLIClient>KekUploadCLIClient-linux-amd64
- os: windows-latest
build: dotnet publish -c release -r win-x64 -p:PublishSingleFile=true --self-contained true
filemap: |
KekUploadCLIClient/bin/Release/net8.0/win-x64/publish/KekUploadCLIClient.exe>KekUploadCLIClient-windows-amd64.exe
- os: macos-latest
build: dotnet publish -c release -r osx-x64 -p:PublishSingleFile=true --self-contained true
filemap: |
KekUploadCLIClient/bin/Release/net8.0/osx-x64/publish/KekUploadCLIClient>KekUploadCLIClient-macos-amd64
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: ${{ matrix.build }}
- name: Pipe files to release
uses: KotwOSS/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
filemap: ${{ matrix.filemap }}
skip_errors: true
release_id: ${{ needs.prepare.outputs.RELEASE_ID }}