Human intervention (#4) #12
This file contains hidden or 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: 🕊️ Release Workflow | |
| on: | |
| push: | |
| branches: | |
| - main | |
| # Limit workflow to one job per branch. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| env: | |
| STABLE_PYTHON_VERSION: '3.12.3' | |
| PYTHONUNBUFFERED: "1" | |
| FORCE_COLOR: "1" | |
| jobs: | |
| release-workflow: | |
| name: 🏹 Release Workflow | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📩 Checkout the source w/ full depth(for tags and SCM) | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: 🐍 Setup Python ${{ env.STABLE_PYTHON_VERSION }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ env.STABLE_PYTHON_VERSION }} | |
| - name: 🧱 Build wheel | |
| run: | | |
| make build | |
| - name: 🐦 Release wheel | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ SECRETS.PYPI_TOKEN }} | |
| packages_dir: dist | |
| verbose: true |