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: with:
python-version: '3.5' python-version: '3.5'
architecture: 'x64' 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 - name: Pack and publish package
working-directory: ./python working-directory: ./python
env: env:
@ -80,6 +85,5 @@ jobs:
EOF EOF
cp ../README.md . cp ../README.md .
aws s3 mv s3://${{ secrets.AWS_S3_BUCKET }}/hyperbuild/bin/python/${{ steps.version.outputs.VERSION }}/ ./hyperbuild/. --recursive 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 setup.py sdist bdist_wheel
python -m twine upload dist/* python -m twine upload dist/*

View File

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