Version 0.14.0 Release #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy nnabla-rl | |
on: | |
release: | |
types: [published] | |
jobs: | |
release-build: | |
if: github.repository == 'sony/nnabla-rl' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r deploy_requirements.txt | |
- name: Build release distributions | |
run: | | |
python setup.py bdist_wheel | |
- name: Temporarily upload release distribution | |
uses: actions/upload-artifact@v3 | |
with: | |
name: release-dists | |
path: dist/ | |
deploy: | |
if: github.repository == 'sony/nnabla-rl' | |
runs-on: ubuntu-latest | |
needs: | |
- release-build | |
permissions: | |
id-token: write | |
steps: | |
- name: Retrieve temporarily uploaded release distributions | |
uses: actions/download-artifact@v3 | |
with: | |
name: release-dists | |
path: dist/ | |
- name: Publish release distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |