fork/cargo

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

Eric Husschore(deps): update actions/checkout action to v5 (#16031)5b48cf2aa

home-0.5.12
777 B33 linesraw
1# Publish Cargo to crates.io whenever a new tag is pushed. Tags are pushed by
2# the Rust release process (https://github.com/rust-lang/promote-release),
3# which will cause this workflow to run.
4
5name: Release
6on:
7  push:
8    tags:
9      - "0.*"
10
11# Prevent multiple releases from starting at the same time.
12concurrency:
13  group: release
14
15jobs:
16  crates-io:
17    name: Publish on crates.io
18    runs-on: ubuntu-latest
19    permissions:
20      contents: read
21
22    # Gain access to the crates.io publishing token.
23    environment:
24      name: release
25
26    steps:
27      - name: Checkout the source code
28        uses: actions/checkout@v5
29
30      - name: Publish Cargo to crates.io
31        run: ./publish.py
32        env:
33          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}