diff --git a/.github/workflows/cargo_publish_dry_run.yml b/.github/workflows/cargo_publish_dry_run.yml index 7dfb46e5..4d0dc08b 100644 --- a/.github/workflows/cargo_publish_dry_run.yml +++ b/.github/workflows/cargo_publish_dry_run.yml @@ -4,6 +4,7 @@ name: Check crate publishing works on: pull_request: branches: [ release ] + workflow_dispatch: env: CARGO_TERM_COLOR: always @@ -15,10 +16,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install stable Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal + uses: dtolnay/rust-toolchain - name: Get Cargo version id: cargo_version diff --git a/.github/workflows/deploy_documentation.yml b/.github/workflows/deploy_documentation.yml index c0d9a373..a6a59735 100644 --- a/.github/workflows/deploy_documentation.yml +++ b/.github/workflows/deploy_documentation.yml @@ -4,6 +4,7 @@ name: Deploy documentation on: push: branches: [ dev ] + workflow_dispatch: env: CARGO_TERM_COLOR: always @@ -23,6 +24,7 @@ jobs: run: cargo +nightly doc --no-deps - name: Deploy documentation + if: ${{ github.event_name == 'branches' }} uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }}