-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (36 loc) · 1.02 KB
/
release.yml
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
34
35
36
37
38
39
40
41
42
43
name: Release
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: cargo publish
run: |
cargo publish -p pyo3-stub-gen-derive
cargo publish -p pyo3-stub-gen
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
next_version:
runs-on: ubuntu-latest
needs: publish
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install cargo-edit
run: cargo install cargo-edit
- name: Bump version
run: |
cargo set-version --bump patch
echo "NEW_VERSION=$(cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version')" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: "Start developing ${{ env.NEW_VERSION }}"
branch: "rust-version-update/${{ env.NEW_VERSION }}"
base: "main"