Skip to content

Commit

Permalink
Add publishing to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
artificial-aidan committed Feb 24, 2022
1 parent e1522a0 commit 9fa706b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: publish pyright-python

on:
# Trigger after Test has completed on main
workflow_run:
workflows: ["Test"]
branches: [main]
types:
- completed

jobs:
publish_release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# TODO: Change back to ubuntu-latest
runs-on: prod
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9

- run: |
pip install -r dev-requirements.txt
python setup.py sdist bdist_wheel
# TODO: remove repository-url
twine upload --repository-url https://r.reg.notartificial.xyz/repository/artificial-pypi-priv/ -u ${{ secrets.NEXUS_USER }} -p ${{ secrets.NEXUS_PASS }} dist/*
2 changes: 2 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
tox
semver==3.0.0.dev3
twine
wheel

0 comments on commit 9fa706b

Please sign in to comment.