From a6d367c429308c99f8da1696c646c0582215da88 Mon Sep 17 00:00:00 2001 From: Samet Demir Date: Wed, 10 Jan 2024 17:44:00 +0000 Subject: [PATCH 1/2] seperated etcd installation for macOS --- .github/workflows/check-publish.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-publish.yml b/.github/workflows/check-publish.yml index 287fbd8..f4f9ffb 100644 --- a/.github/workflows/check-publish.yml +++ b/.github/workflows/check-publish.yml @@ -41,7 +41,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install etcd + - name: Install etcd for linux run: | ETCD_VER=v3.4.14 DOWNLOAD_URL=https://github.com/etcd-io/etcd/releases/download @@ -49,6 +49,18 @@ jobs: mkdir /tmp/etcd-download-test tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1 /tmp/etcd-download-test/etcd & + if: runner.os == 'Linux' + + - name: Install etcd for macos + run: | + ETCD_VER=v3.4.14 + DOWNLOAD_URL=https://github.com/etcd-io/etcd/releases/download + curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-darwin-amd64.zip -o /tmp/etcd-${ETCD_VER}-darwin-amd64.zip + mkdir /tmp/etcd-download-test + unzip /tmp/etcd-${ETCD_VER}-darwin-amd64.zip -d /tmp + mv /tmp/etcd-${ETCD_VER}-darwin-amd64/* /tmp/etcd-download-test + /tmp/etcd-download-test/etcd & + if: runner.os == 'macOS' - name: Install packages run: | From f03faac7bc1d5a983612df0bd480dd9a2fd9b71e Mon Sep 17 00:00:00 2001 From: Samet Demir Date: Wed, 10 Jan 2024 19:59:00 +0000 Subject: [PATCH 2/2] instead of username/password, actions will now use pypi token --- .github/workflows/check-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-publish.yml b/.github/workflows/check-publish.yml index f4f9ffb..e5a6ef4 100644 --- a/.github/workflows/check-publish.yml +++ b/.github/workflows/check-publish.yml @@ -124,8 +124,8 @@ jobs: - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: "__token__" + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | python setup.py sdist bdist_wheel - twine upload dist/* + twine upload dist/* --verbose