File: release.yml

package info (click to toggle)
rust-cargo 0.86.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,088 kB
  • sloc: javascript: 408; sh: 306; python: 87; xml: 21; makefile: 6
file content (33 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (18)
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
# Publish Cargo to crates.io whenever a new tag is pushed. Tags are pushed by
# the Rust release process (https://github.com/rust-lang/promote-release),
# which will cause this workflow to run.

name: Release
on:
  push:
    tags:
      - "0.*"

# Prevent multiple releases from starting at the same time.
concurrency:
  group: release

jobs:
  crates-io:
    name: Publish on crates.io
    runs-on: ubuntu-latest
    permissions:
      contents: read

    # Gain access to the crates.io publishing token.
    environment:
      name: release

    steps:
      - name: Checkout the source code
        uses: actions/checkout@v4

      - name: Publish Cargo to crates.io
        run: ./publish.py
        env:
          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}