Skip to content

Commit

Permalink
Use in house pypi-publisher for CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Jun 23, 2024
1 parent 0d6cb30 commit 8d71a06
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 37 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: none-shall-pass

on:
workflow_dispatch:
push:
branches:
- main

jobs:
none-shall-pass:
runs-on: thevickypedia-lite
steps:
- uses: thevickypedia/none-shall-pass@v5
11 changes: 0 additions & 11 deletions .github/workflows/none.yml

This file was deleted.

32 changes: 6 additions & 26 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,14 @@
# This workflow will upload a Python Package using Twine when a release is created

name: pypi-publish

# Controls when the workflow will run
on:
workflow_dispatch: {}
workflow_dispatch:
release:
types: [ published ]

jobs:
deploy:

runs-on: ubuntu-latest

pypi-publisher:
runs-on: thevickypedia-lite
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Create packages
run: python -m build
- name: Run twine check
run: twine check dist/*
- name: Upload to pypi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*.whl
- uses: thevickypedia/pypi-publisher@v3
env:
token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 8d71a06

Please sign in to comment.