From df93a3b4b987a444a70e5c5feab5b6cbe69a0cbe Mon Sep 17 00:00:00 2001 From: Elliot Fontaine <92150839+elliotfontaine@users.noreply.github.com> Date: Wed, 2 Oct 2024 20:57:33 +0200 Subject: [PATCH] ci: add publish workflow (pypi) --- .github/workflows/publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d0cc316 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +name: Publish package + +on: + push: + tags: ["*"] + +concurrency: + group: ${{github.workflow}}-${{github.ref}} + cancel-in-progress: true + +jobs: + # npm: + # uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main + # secrets: + # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + # crates: + # uses: tree-sitter/workflows/.github/workflows/package-crates.yml@main + # secrets: + # CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}} + pypi: + uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main + secrets: + PYPI_API_TOKEN: ${{secrets.PYPI_API_TOKEN}}