Skip to content

Commit

Permalink
add conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Jun 9, 2024
1 parent bb6f219 commit 44b1162
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@ name: Publish

on:
workflow_dispatch:
inputs:
publish_pypi:
type: boolean
description: 'Publish PyPi Package'
required: true
default: true
publish_docker:
type: boolean
description: 'Publish Docker Image'
required: true
default: true

jobs:
pypi-publish:
runs-on: ubuntu-latest
if: ${{ inputs.publish_pypi }}
permissions:
id-token: write
steps:
Expand All @@ -24,6 +36,7 @@ jobs:

docker-publish:
runs-on: ubuntu-latest
if: ${{ inputs.publish_docker }}
permissions:
packages: write
steps:
Expand Down

0 comments on commit 44b1162

Please sign in to comment.