Skip to content

Commit

Permalink
Attempt CI
Browse files Browse the repository at this point in the history
  • Loading branch information
imerr committed Jun 19, 2024
1 parent b9726c7 commit 8f4a728
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 24 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build on release

on:
push:
tags:
- 'v*.*.*' # Triggers the workflow on version tags like v1.0.0

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Extract version from tag
id: extract_version
run: echo "::set-output name=VERSION::${GITHUB_REF#refs/tags/v}"

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.x' # .NET 6.x SDK supports .NET Standard 2.0

- name: Restore dependencies
run: dotnet restore

- name: Build project
run: dotnet build crypto/src/BouncyCastle.Crypto.csproj --configuration Release --framework netstandard2.0 /p:Version=${{ steps.extract_version.outputs.VERSION }}

- name: Publish DLL
run: dotnet publish crypto/src/BouncyCastle.Crypto.csproj -c Release -f netstandard2.0 -o ./publish /p:Version=${{ steps.extract_version.outputs.VERSION }}

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Mirror.BouncyCastle.Crypto-dll
path: ./publish
1 change: 0 additions & 1 deletion BouncyCastle.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
LICENSE.md = LICENSE.md
README.md = README.md
signfile.bat = signfile.bat
version.json = version.json
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BouncyCastle.Crypto", "crypto\src\BouncyCastle.Crypto.csproj", "{25326952-177B-4D34-9448-3024AF0D7B46}"
Expand Down
4 changes: 0 additions & 4 deletions crypto/src/BouncyCastle.Crypto.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<Target Name="FixAssemblyAttributes" AfterTargets="GetBuildVersion">
Expand Down
19 changes: 0 additions & 19 deletions version.json

This file was deleted.

0 comments on commit 8f4a728

Please sign in to comment.