Skip to content

ci: rename dependabot config to .yaml #186

ci: rename dependabot config to .yaml

ci: rename dependabot config to .yaml #186

Workflow file for this run

name: Main
on: push
permissions:
contents: read
jobs:
test_publish:
name: Test and publish
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install dependencies
run: make setup
- name: Run tests
run: make test
- name: Build
run: make build
- name: Publish (dry run)
if: ${{ !startsWith(github.ref, 'refs/tags/v') }} # Only dry-run if not a release.
run: |
cargo publish --dry-run -p sectxtlib
#cargo publish --dry-run -p sectxt # Fails if sectxtlib is not actually published
- name: Publish
if: startsWith(github.ref, 'refs/tags/v') # Only publish for new release.
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: make publish