Skip to content

Commit

Permalink
Add test publish GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
phyrwork committed Aug 29, 2024
1 parent eee350e commit 88eea84
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test-publish-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test publish

on: push

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest

environment:
name: test-pypi
url: https://test.pypi.org/project/copyright2

permissions:
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
repository-url: https://test.pypi.org/legacy/

0 comments on commit 88eea84

Please sign in to comment.