Skip to content

Commit

Permalink
add "release" trigger to workflows (#24)
Browse files Browse the repository at this point in the history
* add "release" trigger to workflows

* remove auto-publish on release

seems to trigger incorrectly?
manual workflow_dispatch -> release is fine for now.
  • Loading branch information
neilmovva authored Apr 20, 2023
1 parent 3b28c30 commit 191d02d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
- '**.md'
- 'python/**'
workflow_dispatch:
inputs:
publish:
description: 'Should packages be published to npm?'
required: true
default: false
type: boolean

jobs:
client-build:
Expand Down Expand Up @@ -61,7 +67,7 @@ jobs:
client-publish:
name: Publish JavaScript SDK
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
if: ${{ inputs.publish }}
needs: [client-build]
steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/build-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ on:
- '**.md'
- 'js/**'
workflow_dispatch:
inputs:
publish:
description: 'Should packages be published to PyPI?'
required: true
default: false
type: boolean

permissions:
contents: read
Expand Down Expand Up @@ -120,7 +126,7 @@ jobs:
publish:
name: Publish
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
if: ${{ inputs.publish }}
needs: [linux, macos, windows, sdist]
steps:
- uses: actions/download-artifact@v3
Expand Down

1 comment on commit 191d02d

@vercel
Copy link

@vercel vercel bot commented on 191d02d Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

docs.blyss.dev
docs-blyss.vercel.app
docs-nu-ruddy.vercel.app
docs-git-main-blyss.vercel.app

Please sign in to comment.