Skip to content

Commit

Permalink
Merge pull request #25 from ecmwf/develop
Browse files Browse the repository at this point in the history
Seperated etcd installation for macOS
  • Loading branch information
sametd authored Jan 10, 2024
2 parents 73b5662 + e213341 commit f8e0aad
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/check-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,26 @@ 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
curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
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: |
Expand Down Expand Up @@ -112,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

0 comments on commit f8e0aad

Please sign in to comment.