ChatProto GitHub Actions to release #1
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: ChatProto GitHub Actions to release | |
run-name: ChatProto GitHub Actions to release | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.12"] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install ChatProto | |
run: | | |
cd ${{ github.workspace }} | |
pip install --upgrade pip | |
pip install -e . | |
- name: Test ChatProto | |
run: | | |
cd ${{ github.workspace }} | |
python -m unittest discover tests | |
- name: Build ChatProto | |
run: | | |
cd ${{ github.workspace }} | |
pip install build | |
python -m build | |
- name: Release | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: true | |
files: | | |
dist/*.tar.gz | |
dist/*.whl |