Skip to content

feat: Added CCReader #8

feat: Added CCReader

feat: Added CCReader #8

Workflow file for this run

name: Lint
on:
push:
workflow_dispatch:
inputs:
job:
description: 'Jobs'
required: true
default: 'lint'
type: choice
options:
- lint
- build
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
build:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') || inputs.job == 'build'
needs: lint
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install build
run: python3 -m pip install --upgrade build
- name: Building
run: python3 -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1