Skip to content

Merge pull request #7 from schultyy/metrics #66

Merge pull request #7 from schultyy/metrics

Merge pull request #7 from schultyy/metrics #66

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
- name: Check if should release
id: check_release
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
echo "should_release=true" >> $GITHUB_OUTPUT
trigger-release:
needs: build
if: needs.build.outputs.should_release == 'true'
runs-on: ubuntu-latest
steps:
- name: Trigger release workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Release
token: ${{ secrets.RELEASE_TOKEN }}
inputs: '{"publish_to_crates_io": true, "release_notes": "Automated release after successful CI build"}'