From ee2d36fcc51b78538a47a9e8d689f8f2cd11dac6 Mon Sep 17 00:00:00 2001 From: Javier Luraschi Date: Mon, 4 Mar 2024 15:25:15 -0800 Subject: [PATCH] only deploy is version changed --- .github/workflows/python.yaml | 8 ++++++++ examples/all.py | 2 ++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index cd87d09..52daefd 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -17,6 +17,13 @@ jobs: id-token: write steps: - uses: actions/checkout@v2 + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@9bf09145c3560e451e8d8e87b42ccb3fef5b692d # v36.3.0 + with: + since_last_remote_commit: true + files: | + setup.py - uses: actions/setup-node@v2 with: node-version: '18' @@ -30,4 +37,5 @@ jobs: working-directory: streamfy - run: python setup.py sdist bdist_wheel - name: Publish package distributions to PyPI + if: steps.changed-files.outputs.any_changed == 'true' uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/examples/all.py b/examples/all.py index eff21a1..9e630cd 100644 --- a/examples/all.py +++ b/examples/all.py @@ -1,7 +1,9 @@ import streamlit as st import streamfy as sy +st.set_page_config(page_title="Streamfy — Buefy for Streamlit") st.title("Streamfy — Buefy for Streamlit") + st.write(""" This gallery showcases modern controls implemented in https://github.com/hal9ai/streamfy """)