Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/beta-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Beta Package

on:
workflow_dispatch:

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Install dependencies
run: dotnet restore ./source/Lexicala.NET.slnx
- name: Build
run: dotnet build ./source/Lexicala.NET.slnx --configuration Release --no-restore
- name: Test
run: dotnet test ./source/Lexicala.NET.slnx --no-restore --verbosity normal
- name: Pack
run: dotnet pack ./source/Lexicala.NET/Lexicala.NET.csproj --configuration Release --no-build --version-suffix "beta.${{ github.run_number }}" --output ./artifacts
- name: Publish to NuGet
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +9 to +26
2 changes: 1 addition & 1 deletion .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build & Test

on:
push:
paths-ignore: ['**.md']
paths-ignore: ['**.md', '.github/**']
# don't run on master because we already have another action for that
branches-ignore: [master]

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-test_pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build & Test
name: Build & Test Pull Request

on:
pull_request:
branches: [ master ]

paths-ignore: ['**.md', '.github/**']
jobs:
build:

Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/package-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Test Package
on:
push:
branches: [ master ]
paths-ignore: ['**.md']
paths-ignore: ['**.md', '.github/**']

jobs:
build:
Expand All @@ -22,8 +22,7 @@ jobs:
run: dotnet build ./source/Lexicala.NET.slnx --configuration Release --no-restore
- name: Test
run: dotnet test ./source/Lexicala.NET.slnx --no-restore --verbosity normal
- name: Publish to Nuget
uses: alirezanet/publish-nuget@v3.0.4
with:
PROJECT_FILE_PATH: ./source/Lexicala.NET/Lexicala.NET.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Pack
run: dotnet pack ./source/Lexicala.NET/Lexicala.NET.csproj --configuration Release --no-build --output ./artifacts
- name: Publish to NuGet
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
2 changes: 1 addition & 1 deletion source/Lexicala.NET/Lexicala.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PackageReleaseNotes>A .NET client for the Lexicala api.
See readme file on project page for further details.</PackageReleaseNotes>
<Copyright></Copyright>
<Version>3.1.0</Version>
<VersionPrefix>3.2.0</VersionPrefix>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
Expand Down
Loading