Attempt to fix Ruby and Python workflows

This commit is contained in:
Wilson Lin 2020-01-20 21:01:57 +11:00
parent 8954bbae4a
commit dad9802826
2 changed files with 7 additions and 3 deletions

View File

@ -65,7 +65,12 @@ jobs:
with:
python-version: '3.5'
architecture: 'x64'
- uses: chrislennon/action-aws-cli@v1.1
- name: Install Python dependencies
run: |
pip install --upgrade awscli
pip install --upgrade wheel
pip install --upgrade setuptools
pip install --upgrade twine
- name: Pack and publish package
working-directory: ./python
env:
@ -80,6 +85,5 @@ jobs:
EOF
cp ../README.md .
aws s3 mv s3://${{ secrets.AWS_S3_BUCKET }}/hyperbuild/bin/python/${{ steps.version.outputs.VERSION }}/ ./hyperbuild/. --recursive
pip install --upgrade setuptools wheel twine
python setup.py sdist bdist_wheel
python -m twine upload dist/*

View File

@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v1
- name: Prepare for rbenv
run: |
cat << 'EOF' >> "$HOME/.bashrc"
cat << 'EOF' >> "$HOME/.bash_profile"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
EOF