Skip to content

Commit

Permalink
Add manual publish workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Seonghyeon Cho <seonghyeoncho96@gmail.com>
  • Loading branch information
sh-cho committed Sep 14, 2024
1 parent 5f756e3 commit 7c62c14
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish-manual.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish packages (Manual)

on:
workflow_dispatch:
inputs:
name:
type: choice
description: 'Which registry?'
required: true
options:
- npm
- crates
- pypi

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
npm:
if: inputs.name == 'npm'
uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main
secrets:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
crates:
if: inputs.name == 'crates'
uses: tree-sitter/workflows/.github/workflows/package-crates.yml@main
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
pypi:
if: inputs.name == 'pypi'
uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main
secrets:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 7c62c14

Please sign in to comment.