Skip to content

Commit

Permalink
restore flow
Browse files Browse the repository at this point in the history
  • Loading branch information
vwxyzjn committed Apr 7, 2021
1 parent cfbf86b commit 32e0da8
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.8
# - uses: actions/checkout@v2
- name: Set up JDK 8 and
uses: actions/setup-java@v1
with:
Expand All @@ -28,17 +29,20 @@ jobs:
run: cd gym_microrts/microrts && bash build.sh && cd .. && cd ..
- name: Build a source tarball
run: python setup.py sdist
# - name: Upload built gym-microrts files
# uses: actions/upload-artifact@v2
# with:
# path: dist/*
- name: Upload artifact to S3
uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: microrts
source_dir: dist
destination_dir: /microrts/artifacts
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
- name: prepare gym-microrts nightly version
run: |
mv setup_nightly.py setup.py
rm -rf dist
python setup.py sdist
- name: Publish test distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}

0 comments on commit 32e0da8

Please sign in to comment.