Skip to content

Commit

Permalink
CI: add workflow input publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Aug 25, 2023
1 parent 37bfca5 commit 330aaa7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ on:
type: boolean
required: false
default: false
publish:
description: Publish release
type: boolean
required: false
default: false

jobs:
android_arm:
Expand Down Expand Up @@ -526,14 +531,14 @@ jobs:
name: NuGet packages
path: '*.nupkg'
- name: Push to nuget.org
if: env.NUGET_API_KEY && startsWith(github.event.inputs.branch, 'chromium/') && github.event.inputs.version
if: env.NUGET_API_KEY && startsWith(github.event.inputs.branch, 'chromium/') && github.event.inputs.version && github.event.inputs.publish == 'true'
run: nuget push -Source nuget.org -ApiKey ${{ secrets.NUGET_API_KEY }} *.nupkg
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

publish:
name: Publish Release
if: startsWith(github.event.inputs.branch, 'chromium/') && github.event.inputs.version
if: startsWith(github.event.inputs.branch, 'chromium/') && github.event.inputs.version && github.event.inputs.publish == 'true'
runs-on: ubuntu-latest
needs:
- android_arm
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ jobs:
"branch": "${{ steps.chromium.outputs.branch }}",
"version": "${{ steps.chromium.outputs.version }}",
"is_debug": "false",
"enable_v8": "true"
"enable_v8": "true",
"publish": "true"
}

0 comments on commit 330aaa7

Please sign in to comment.