name: release-crateon:release:types:- publishedjobs:check-secret:runs-on: ubuntu-22.04if: contains(github.ref, 'v2.')environment: crates-io-static-web-serveroutputs:publish: ${{ steps.check.outputs.publish }}steps:- id: checkenv:CRATES_TOKEN: "${{ secrets.CRATES_TOKEN }}"if: "${{ env.CRATES_TOKEN != '' }}"run: echo "publish=true" >> $GITHUB_OUTPUTpublish:needs: check-secretruns-on: ubuntu-22.04if: needs.check-secret.outputs.publish == 'true'environment: crates-io-static-web-serversteps:- name: Checkoutuses: actions/checkout@v3with:fetch-depth: 1- name: Install stable toolchainuses: dtolnay/rust-toolchain@nightly- name: Publish workspace packagesenv:CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}run: cargo publish -p static-web-server