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
12 changes: 9 additions & 3 deletions .github/workflows/dotnet-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: .NET CI
run-name: Continuous Integration

on:
push:
branches: [ "feature/*" ]
pull_request:
pull_request_target:
branches: [ "main" ]
types: [opened, synchronize, reopened, closed]
types: [closed]

concurrency:
group: ci-${{ github.workflow }}-${{ github.actor_id }}
cancel-in-progress: true

jobs:
build_and_test:
uses: ./.github/workflows/dotnet-job-build-test.yaml
name: Build and Test
uses: ./.github/workflows/wf-build-test.yaml
14 changes: 10 additions & 4 deletions .github/workflows/dotnet-prerelease-pack.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Create pre-release NuGet package
run-name: Create pre-release NuGet package
name: .Nuget Pre-release
run-name: Create pre-release NuGet packages

on:
workflow_dispatch:
Expand All @@ -22,6 +22,10 @@ on:
required: true
default: '1'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
setup_env:
name: Setup environment
Expand All @@ -37,11 +41,13 @@ jobs:
run: echo "version_suffix=${{ format('{0}{1}', github.event.inputs.version_suffix, github.event.inputs.version_custom) }}" >> "$GITHUB_OUTPUT"

build_and_test:
uses: ./.github/workflows/dotnet-job-build-test.yaml
name: Build and test
uses: ./.github/workflows/wf-build-test.yaml

publish_nuget:
needs: [build_and_test, setup_env]
uses: ./.github/workflows/dotnet-job-publish-nuget.yaml
name: Publish NuGet packages
uses: ./.github/workflows/wf-publish-nuget.yaml
with:
push_package: ${{ github.event.inputs.push_package }}
version_suffix: ${{ needs.setup_env.outputs.version_suffix }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/dotnet-release.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: .NET Release
run-name: Release ${{ github.ref_name }}

on:
push:
branches: [ "release/*" ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
publish_nuget:
uses: ./.github/workflows/dotnet-job-publish-nuget.yaml
uses: ./.github/workflows/wf-publish-nuget.yaml
with:
push_package: true
secrets:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Test
name: wf_build_and_test
run-name: Build & Test

on:
Expand All @@ -23,6 +23,9 @@ jobs:
with:
dotnet-version: 8.0.x

- name: Create packages directory
run: mkdir -p packages

- name: Restore dependencies
run: dotnet restore

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: NuGet Publish
name: wf_nuget_publish
run-name: Publish NuGet Package

on:
workflow_call:
Expand Down Expand Up @@ -30,8 +31,11 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Create packages directory
run: mkdir -p packages

- name: Pack
run: dotnet pack $GITHUB_WORKSPACE/InvvardDev.Ifttt.sln --output ${{ env.package_path }} --configuration ${{ inputs.build_configuration }} -p:GeneratePackageOnBuild=false
run: dotnet pack $GITHUB_WORKSPACE/InvvardDev.Ifttt.sln --output ${{ env.package_path }} --configuration ${{ inputs.build_configuration }} -p:GeneratePackageOnBuild=falsedot

- name: Upload Artifact
uses: actions/upload-artifact@v4
Expand Down
5 changes: 1 addition & 4 deletions nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="Project Packages" value="./packages/" />
<add key="Project Packages" value="./packages" />
</packageSources>
<disabledPackageSources>
<add key="Project Packages" value="true" />
</disabledPackageSources>
</configuration>