fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
958 B35 linesraw
1name: publish-libs
2on:
3  workflow_dispatch:
4  push:
5    branches:
6      - master
7    paths:
8      - "lib/**"
9
10jobs:
11  publish-libs:
12    name: publish
13    runs-on: ubuntu-latest
14    steps:
15      - name: Checkout repository
16        uses: actions/checkout@v3
17        with:
18          fetch-depth: 0
19
20      - name: Install Rust toolchain
21        run: rustup update --no-self-update stable
22
23      - name: Install cargo-workspaces
24        run: cargo install cargo-workspaces
25
26      - name: Publish Crates
27        env:
28          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
29        shell: bash
30        run: |
31          git config --global user.email "runner@gha.local"
32          git config --global user.name "GitHub Action"
33          # Remove r-a crates from the workspaces so we don't auto-publish them as well
34          sed -i 's/ "crates\/\*"//' ./Cargo.toml
35          cargo workspaces publish --yes --exact --from-git --no-git-commit --allow-dirty