Skip to content

Commit a7bd787

Browse files
authored
ci: switch to release-plz (#911)
1 parent 107eed8 commit a7bd787

File tree

6 files changed

+63
-28
lines changed

6 files changed

+63
-28
lines changed

.github/workflows/release-please.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/release-plz.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Release-plz
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
issues: write
11+
pull-requests: write
12+
13+
jobs:
14+
release-plz-release:
15+
name: Release-plz release
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
steps:
20+
- &checkout
21+
name: Checkout repository
22+
uses: actions/checkout@v6
23+
with:
24+
fetch-depth: 0
25+
persist-credentials: false
26+
- &install-rust
27+
name: Install Rust toolchain
28+
uses: dtolnay/rust-toolchain@stable
29+
- &generate-token
30+
uses: actions/create-github-app-token@v2
31+
id: generate-token
32+
with:
33+
app-id: ${{ vars.RELEASE_BOT_CLIENT_ID }}
34+
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
35+
- name: Run release-plz
36+
uses: release-plz/[email protected]
37+
with:
38+
command: release
39+
env:
40+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
41+
release-plz-pr:
42+
name: Release-plz PR
43+
runs-on: ubuntu-latest
44+
permissions:
45+
contents: write
46+
pull-requests: write
47+
concurrency:
48+
group: release-plz-${{ github.ref }}
49+
cancel-in-progress: false
50+
steps:
51+
- *checkout
52+
- *install-rust
53+
- *generate-token
54+
- name: Run release-plz
55+
uses: release-plz/[email protected]
56+
with:
57+
command: release-pr
58+
env:
59+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

crates/core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To use the library in your project:
1414

1515
```toml
1616
[dependencies]
17-
stac = "0.13"
17+
stac = "*"
1818
```
1919

2020
## Examples

crates/io/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To use the library in your project:
1414

1515
```toml
1616
[dependencies]
17-
stac-io = "0.1"
17+
stac-io = "*"
1818
```
1919

2020
## Other info

crates/pgstac/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In your `Cargo.toml`:
1313

1414
```toml
1515
[dependencies]
16-
pgstac = "0.3"
16+
pgstac = "*"
1717
```
1818

1919
See the [documentation](https://docs.rs/pgstac) for more.

crates/server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To use this library in another application:
3636

3737
```toml
3838
[dependencies]
39-
stac-server = "0.3"
39+
stac-server = "*"
4040
```
4141

4242
### Deploying

0 commit comments

Comments
 (0)