fork/rust-sdks
git clone https://git.julia.blue/fork/rust-sdks
ca39260
main
1# Copyright 2023 LiveKit, Inc. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15name : Bump and publish crates 16 17on : 18workflow_dispatch : 19inputs : 20packages : 21description : "packages to bump" 22type : string 23required : true 24 25env : 26CARGO_TERM_COLOR : always 27CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_TOKEN }} 28 29jobs : 30bump : 31permissions : 32contents : write 33runs-on : ubuntu-latest 34steps : 35- uses : actions/checkout@v3 36with : 37ssh-key : ${{ secrets.NANPA_KEY }} 38- uses : nbsp/ilo@v1 39with : 40packages : ${{ github.event.inputs.packages }} 41publish : 42runs-on : ubuntu-latest 43needs : bump 44steps : 45- uses : actions/checkout@v3 46with : 47submodules : true 48- name : Resync is needed after bump 49run : | 50git fetch --tags && git checkout origin/main 51- name : Publish crates 52run : | 53 git tag --points-at HEAD | 54 sed 's|^[^/]*@|@|' | 55 sed 's|^[^/]*/||' | 56 sed 's|@.*||' | 57 xargs -I _ sh -c 'cd ./_ && cargo publish --no-verify'