-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 976 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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