Skip to content

Commit

Permalink
test pypi upload
Browse files Browse the repository at this point in the history
  • Loading branch information
raylu committed Apr 26, 2024
1 parent 6d77ee1 commit 616b53c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PyPI publish

on:
push:
branches: '*'
release:
types: [created]
workflow_dispatch:

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: pip

- name: Build package
run: pip install build && mv dool dool.py && python -m build

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
env:
name: test-pypi
url: https://test.pypi.org/p/dool

0 comments on commit 616b53c

Please sign in to comment.