publish #34
This file contains 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: | |
encrypt_config: | |
description: "publish encrypt_config" | |
type: boolean | |
default: false | |
encrypt_config_derive: | |
description: "publish encrypt_config_derive" | |
type: boolean | |
default: false | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install cargo components | |
run: rustup component add clippy | |
- name: login to crates.io | |
run: cargo login ${{ secrets.CRATESIO }} | |
- name: publish encrypt_config_derive | |
if: ${{ inputs.encrypt_config_derive }} | |
run: .github/scripts/publish_test.sh encrypt_config_derive && .github/scripts/publish.sh encrypt_config_derive | |
- name: publish encrypt_config | |
if: ${{ inputs.encrypt_config }} | |
run: .github/scripts/publish_test.sh encrypt_config && .github/scripts/publish.sh encrypt_config |