Skip to content

Commit

Permalink
Dispatch to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
shwethanidd authored Nov 29, 2022
1 parent 574419c commit a6e50ea
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/dispatch-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# Documentation located
# https://github.com/marketplace/actions/publish-python-poetry-package
name: Dispatch to PyPi

on:
workflow_dispatch:

defaults:
run:
shell: bash

env:
LANG: en_US.utf-8
LC_ALL: en_US.utf-8
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

jobs:

publish_to_pypi:

runs-on: ubuntu-22.04

steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

- name: Checkout code
uses: actions/checkout@v2

- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
# These are only needed when using test.pypi
#repository_name: testpypi
#repository_url: https://test.pypi.org/legacy/
pypi_token: ${{ secrets.PYPI_TOKEN }}
ignore_dev_requirements: "yes"

0 comments on commit a6e50ea

Please sign in to comment.