name: Publish
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
Publish:
runs-on: ubuntu-latest
environment:
name: Publish
container:
image: rust:latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download SQLite opcode docs
run: curl -fsSL https://sqlite.org/opcode.html -o /tmp/opcode.html
- name: Check opcode coverage
run: python3 scripts/check_opcodes.py /tmp/opcode.html
- name: Run tests
run: cargo test
- name: Publish
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}