Skip to content

Artifacts for the BitMono CLI .NET Standard 2.1 #9

Artifacts for the BitMono CLI .NET Standard 2.1

Artifacts for the BitMono CLI .NET Standard 2.1 #9

name: Artifacts for the BitMono CLI .NET Standard 2.1
on:
create:
tags:
- "*"
jobs:
Build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'
- name: Build
run: dotnet build ./src/BitMono.CLI/BitMono.CLI.csproj /p:TargetFramework=netstandard2.1 /p:BitMonoVersion=${{ github.ref_name }} /p:CreateBitMonoArtifacts=true --configuration Release
- name: Upload build
uses: actions/upload-artifact@v2
with:
name: build
path: "./src/BitMono.CLI/BitMono-v${{ github.ref_name }}-CLI-netstandard2.1.zip"
Release:
needs: [Build]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download build
uses: actions/download-artifact@v2
with:
name: build
path: ./build/
- name: Create Release & Upload Assets
uses: ncipollo/release-action@v1
with:
name: v${{ github.ref_name }}
tag: v${{ github.ref_name }}
artifacts: "./build/BitMono-v${{ github.ref_name }}-CLI-netstandard2.1.zip"
token: ${{secrets.PAT}}
prerelease: true
allowUpdates: true