Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hugozhu authored Sep 26, 2023
1 parent a6db428 commit 28aa141
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Upload Python Package
on:
push:
branches:
- main
- test

permissions:
contents: read
Expand All @@ -22,12 +22,20 @@ jobs:

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install build
python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}

- uses: hugozhu/dingtalk-github-action@v1
with:
token: ${{ secrets.DINGTALK_TOKEN }}
title: 'Blog updated from Github action'
type: text
content: |
## streamlit-auth published
> from github action message

0 comments on commit 28aa141

Please sign in to comment.