Skip to content

Commit

Permalink
Merge pull request #555 from Inxton/554-package-publishpush-on-demand
Browse files Browse the repository at this point in the history
Package publish/push on demand.
  • Loading branch information
PTKu authored Jan 28, 2025
2 parents feccd99 + d291d4b commit 479d9cf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ jobs:
env:
GH_TOKEN : ${{ secrets.GH_TOKEN }}
GH_USER : ${{ secrets.GH_USER }}
run: dotnet run --project cake/Build.csproj --do-test --do-pack --test-level 2 --do-publish --do-publish-release
run: dotnet run --project cake/Build.csproj --do-test --do-pack --test-level 2

28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: publish

on:
workflow_dispatch:

jobs:
build:
strategy:
matrix:
configuration: [Release]

runs-on: [self-hosted, Windows, X64, L2, AX] # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'

- name: "Build script"
run: dotnet build cake/Build.csproj

- name: "Run build script"
env:
GH_TOKEN : ${{ secrets.GH_TOKEN }}
GH_USER : ${{ secrets.GH_USER }}
run: dotnet run --project cake/Build.csproj --do-test --do-pack --test-level 2 --do-publish --do-publish-release

0 comments on commit 479d9cf

Please sign in to comment.