Skip to content

Deploy using CI/CD

Deploy using CI/CD #14

Workflow file for this run

name: CI/CD
on: [push]
jobs:
deployment:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
environment: release
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Check the code
run: |
make check
- name: Build the front-end
working-directory: text_highlighter/frontend
run: |
npm install
npm run build
- name: Build the package
run: |
python -m build
- name: Publish the package
run: |
python -m twine upload dist/*