diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a2f6b8df..e107a38e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,33 +1,15 @@ name: Publish on: - push: - branches: - - master + workflow_run: + workflows: Rust + branches: master + types: completed env: CARGO_TERM_COLOR: always jobs: - build: - strategy: - matrix: - rust-channel: [ 'stable', 'nightly' ] - rust-target: [ 'x86_64-unknown-linux-gnu', 'thumbv7em-none-eabi' ] - name: ${{ matrix.rust-channel }}-${{ matrix.rust-target }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4.1.1 - - name: Install toolchain - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: ${{ matrix.rust-channel }} - target: ${{ matrix.rust-target }} - - name: Cargo Check - run: cargo check --target ${{ matrix.rust-target }} - - name: Cargo Build - run: cargo build --verbose --target ${{ matrix.rust-target }} - release-please: name: Execute release chores @@ -36,7 +18,6 @@ jobs: pull-requests: write runs-on: ubuntu-latest - needs: build outputs: created: ${{ steps.release.outputs.release_created }} @@ -48,7 +29,6 @@ jobs: release-type: rust token: ${{ secrets.GH_PERSONAL_TOKEN }} - publish: name: Publish to crates.io @@ -68,4 +48,4 @@ jobs: cargo publish --verbose --locked - --token ${{ secrets.CRATES_TOKEN }} \ No newline at end of file + --token ${{ secrets.CRATES_TOKEN }}