Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Build simpleflow"

on:
release:
types:
- created

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v3
with:
name: simpleflow
path: dist
35 changes: 35 additions & 0 deletions .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Publish release to TestPyPI"

on:
workflow_run:
workflows:
- build
types:
- completed
branches:
- main

jobs:
publish-testpypi:
name: Upload release to TestPyPI
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
environment:
name: test-release
url: https://test.pypi.org/p/simpleflow
permissions:
id-token: write
steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
name: simpleflow

- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
print-hash: true