Skip to content

Commit

Permalink
Add ability to push via manual run
Browse files Browse the repository at this point in the history
  • Loading branch information
kant2002 committed Aug 6, 2024
1 parent 786fca3 commit 1ffcbf9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
publish_artifacts:
description: 'Publish artifacts'
required: true
default: 'true'
schedule:
- cron: '0 0 * * 0'

Expand Down Expand Up @@ -50,6 +55,6 @@ jobs:
run:
echo ${{ secrets.AZ_DEVOPS_KEY }}
dotnet nuget push --source fstarlang --api-key ${{ secrets.AZ_DEVOPS_KEY }} "artifacts/package/release/*.nupkg"
if: github.event_name == 'push'
if: github.event_name == 'push' || github.event.inputs.publish_artifacts == 'true'
env:
AZ_DEVOPS_KEY: ${{ secrets.AZ_DEVOPS_KEY }}

0 comments on commit 1ffcbf9

Please sign in to comment.