|
|
|
|
|
|
push: |
|
|
|
tags: |
|
|
|
- "release_[0-9]+_test[0-9]+" |
|
|
|
- "release_[0-9]+" |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
package-path: [ml-agents, ml-agents-env, gym-unity] |
|
|
|
|
|
|
|
steps: |
|
|
|
- uses: actions/checkout@master |
|
|
|
|
|
|
run: pip install setuptools wheel twine --user |
|
|
|
- name: verify git tag vs. version |
|
|
|
run: | |
|
|
|
cd ml-agents |
|
|
|
GITHUB_REF=${{ github.ref }} python setup.py verify |
|
|
|
cd ${{ matrix.package-path }} |
|
|
|
python setup.py verify |
|
|
|
cd ml-agents |
|
|
|
cd ${{ matrix.package-path }} |
|
|
|
if: startsWith(github.ref, 'refs/tags') |
|
|
|
if: startsWith(github.ref, 'refs/tags') && contains(github.ref, 'test') |
|
|
|
packages_dir: ml-agents/dist/ |
|
|
|
packages_dir: ${{ matrix.package-path }}/dist/ |
|
|
|
|
|
|
|
|