Skip to content

Commit d039333

Browse files
committed
Revert "remove release-plz"
This reverts commit d6cdd20.
1 parent d6cdd20 commit d039333

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Release Please
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
# Create a PR with the new versions and changelog, preparing the next release.
14+
release-plz-pr:
15+
name: Release-plz PR
16+
runs-on: ubuntu-latest
17+
if: ${{ github.repository_owner == 'PulseBeamDev' }}
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
concurrency:
22+
group: release-plz-${{ github.ref }}
23+
cancel-in-progress: false
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v5
27+
with:
28+
fetch-depth: 0
29+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
30+
- name: Install Rust toolchain
31+
uses: dtolnay/rust-toolchain@stable
32+
- name: Run release-plz
33+
uses: release-plz/action@v0.5
34+
with:
35+
command: release-pr
36+
env:
37+
RELEASE_PLZ_LOG: DEBUG
38+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }}
39+
# For publishing to crates.io, create a secret named CARGO_REGISTRY_TOKEN
40+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
41+
42+
# Release unpublished packages.
43+
release-plz-release:
44+
name: Release-plz release
45+
runs-on: ubuntu-latest
46+
if: ${{ github.repository_owner == 'PulseBeamDev' }}
47+
permissions:
48+
contents: write
49+
steps:
50+
- name: Checkout repository
51+
uses: actions/checkout@v5
52+
with:
53+
fetch-depth: 0
54+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
55+
- name: Install Rust toolchain
56+
uses: dtolnay/rust-toolchain@stable
57+
- name: Run release-plz
58+
uses: release-plz/action@v0.5
59+
with:
60+
command: release
61+
env:
62+
RELEASE_PLZ_LOG: DEBUG
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
# For publishing to crates.io, create a secret named CARGO_REGISTRY_TOKEN
65+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)