From 91b80e90bd622254be2a4be2c52b61d1286165a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Dvo=C5=99=C3=A1k?= Date: Sat, 27 Apr 2024 04:36:55 +0200 Subject: [PATCH 1/5] Create python-publish.yml --- .github/workflows/python-publish.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..d76e294 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,31 @@ +name: Upload Python Package + +on: + push: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - 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 + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + #with: + # user: __token__ + # password: ${{ secrets.PYPI_API_TOKEN }} From b66d065782d67803bea7109ebcbacb598244ec15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Dvo=C5=99=C3=A1k?= Date: Sat, 27 Apr 2024 16:35:07 +0200 Subject: [PATCH 2/5] Update pyproject.toml --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 04d4924..8db0269 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "hatchling.build" [project] name = "ft260" -version = "0.1.0" +version = "0.1.1" authors = [ {name = "Roman Dvorak", email = "dvorakroman@ust.cz"} ] @@ -37,4 +37,4 @@ version = {attr = "ft260.__version__"} [project.urls] project = "https://www.mlab.cz" documentation = "https://github.com/MLAB-project/PyFT260" -github = "https://github.com/MLAB-project/PyFT260" \ No newline at end of file +github = "https://github.com/MLAB-project/PyFT260" From 4aa0c9d5c36ea9eb6b8707fda1ded81d7bf89b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Dvo=C5=99=C3=A1k?= Date: Sat, 27 Apr 2024 16:49:22 +0200 Subject: [PATCH 3/5] Update python-publish.yml --- .github/workflows/python-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index d76e294..c87aa8b 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -26,6 +26,6 @@ jobs: run: python -m build - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - #with: - # user: __token__ - # password: ${{ secrets.PYPI_API_TOKEN }} + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} From cdd6696918b645f883c7dbfbf1c0fb81a5163fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Dvo=C5=99=C3=A1k?= Date: Sat, 27 Apr 2024 17:00:08 +0200 Subject: [PATCH 4/5] Update python-publish.yml --- .github/workflows/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index c87aa8b..0583589 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -25,7 +25,7 @@ jobs: - name: Build package run: python -m build - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + uses: pypa/gh-action-pypi-publish@v1.8.14 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} From 89196bf8a3ae218184d653257ee019fca8c49bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Dvo=C5=99=C3=A1k?= Date: Sat, 27 Apr 2024 17:03:34 +0200 Subject: [PATCH 5/5] Update python-publish.yml --- .github/workflows/python-publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 0583589..cdc449e 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -4,7 +4,8 @@ on: push: release: types: [published] - + workflow_dispatch: + permissions: contents: read