Create release #159
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
--- | |
# This workflow will install Python dependencies, run tests | |
name: Create release | |
on: | |
workflow_run: | |
workflows: ["Run CI/CD"] | |
types: ["completed"] | |
branches: ["main"] | |
jobs: | |
create_distributions: | |
runs-on: ${{ matrix.os }} | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
strategy: | |
fail-fast: True | |
max-parallel: 1 | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Create distributions | |
run: python build-otc.py | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: | | |
This is the latest release and is not production ready. | |
Use at your own risk. | |
name: latest | |
draft: True | |
prerelease: True | |
files: dist/*.zip |