Skip to content

Commit 31c1967

Browse files
authored
Merge pull request #6 from astral-sh/konsti/better-release-plz
chore: Modernize release-plz setup
2 parents ce1f420 + 744757a commit 31c1967

2 files changed

Lines changed: 36 additions & 12 deletions

File tree

.github/workflows/release-plz.yml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,51 @@
11
name: Release-plz
22

3-
permissions:
4-
pull-requests: write
5-
contents: write
6-
73
on:
84
push:
95
branches:
106
- main
117

128
jobs:
13-
release-plz:
14-
name: Release-plz
9+
release-plz-release:
10+
name: Release-plz release
1511
runs-on: ubuntu-latest
12+
if: ${{ github.repository_owner == 'astral-sh' }}
13+
permissions:
14+
contents: write
15+
id-token: write
1616
steps:
17-
- name: Checkout repository
18-
uses: actions/checkout@v4
17+
- &checkout
18+
name: Checkout repository
19+
uses: actions/checkout@v6
1920
with:
2021
fetch-depth: 0
21-
- name: Install Rust toolchain
22+
persist-credentials: true
23+
- &install-rust
24+
name: Install Rust toolchain
2225
uses: dtolnay/rust-toolchain@stable
2326
- name: Run release-plz
24-
uses: MarcoIeni/release-plz-action@v0.5
27+
uses: release-plz/action@v0.5
28+
with:
29+
command: release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
release-plz-pr:
34+
name: Release-plz PR
35+
runs-on: ubuntu-latest
36+
if: ${{ github.repository_owner == 'astral-sh' }}
37+
permissions:
38+
pull-requests: write
39+
contents: write
40+
concurrency:
41+
group: release-plz-${{ github.ref }}
42+
cancel-in-progress: false
43+
steps:
44+
- *checkout
45+
- *install-rust
46+
- name: Run release-plz
47+
uses: release-plz/action@v0.5
48+
with:
49+
command: release-pr
2550
env:
2651
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version = "0.10.0"
55
edition = "2021"
66
description = "A library for streaming reading of files over HTTP using range requests"
77
license = "MIT"
8-
repository = "https://github.com/prefix-dev/async_http_range_reader"
8+
repository = "https://github.com/astral-sh/async_http_range_reader"
99
exclude = ["test-data/*"]
1010

1111
[lib]

0 commit comments

Comments
 (0)