Skip to content

Create codeql.yml

Create codeql.yml #33

Workflow file for this run

name: Ruff and Publish
on:
push:
branches:
- "**"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Ruff Linter
uses: chartboost/ruff-action@v1
publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' # Executes only for pushes to the main branch
needs: lint
steps:
- uses: actions/checkout@v4
- name: Publish Package
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}