Skip to content

Commit

Permalink
add test publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ikb42 committed Nov 15, 2023
1 parent b49e772 commit 2441bb6
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish-testpypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Python Packages TestPyPI

on:
release:
types: [published]

push:
branches:
- dev

jobs:
testpypi-publish:
if: github.repository == 'LightwaveSmartHome/lightwave-smart'

runs-on: ubuntu-latest

name: Upload release to TestPyPI
environment:
name: testpypi
url: https://test.pypi.org/p/lightwave-smart
permissions:
id-token: write

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 2441bb6

Please sign in to comment.