name: Publish Cargo package run-name: ${{ github.actor }} is building ${{ github.repository }} on: push: branches: - main jobs: Publish-Cargo: runs-on: ubuntu-latest steps: - name: Install Rust run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - name: Check out repository code uses: actions/checkout@v3 - name: Publish run: cargo run -r