publish #72
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: publish | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| fav: | |
| description: "publish fav_bili" | |
| type: boolean | |
| default: false | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: install cargo components | |
| run: rustup component add clippy | |
| - name: login to crates.io | |
| run: echo "${{ secrets.CRATESIO }}" | cargo login | |
| - name: publish fav_bili | |
| if: ${{ inputs.fav_bili }} | |
| run: .github/scripts/publish_test.sh fav_bili && .github/scripts/publish.sh fav_bili |