File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Bump packages
2
+
3
+ permissions :
4
+ contents : write
5
+
6
+ on :
7
+ workflow_dispatch :
8
+ inputs :
9
+ action :
10
+ description : ' bump or publish'
11
+ required : true
12
+ default : ' bump'
13
+ type : choice
14
+ options :
15
+ - bump
16
+ - publish
17
+
18
+ jobs :
19
+ bump :
20
+ runs-on : ubuntu-latest
21
+ if : github.event.inputs.action == 'bump'
22
+ steps :
23
+ - uses : actions/checkout@v4
24
+ - uses : dtolnay/rust-toolchain@stable
25
+ - run : rustc publish.rs
26
+ - run : git checkout -b bump
27
+ - run : printf "bump versions for release\n\n" > /tmp/bump
28
+ - run : ./publish bump >> /tmp/bump
29
+ - run : git add .
30
+ - run : git commit -m "bump"
31
+ - run : git push origin bump
32
+ - run : gh pr create --fill --body-file /tmp/bump
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+
36
+ publish :
37
+ runs-on : ubuntu-latest
38
+ if : github.event.inputs.action == 'publish'
39
+ steps :
40
+ - uses : actions/checkout@v4
41
+ - uses : dtolnay/rust-toolchain@stable
42
+ - run : rustc publish.rs
43
+ - name : assert we're on bump branch
44
+ run : test "$(git git branch --show-current)" = "bump"
45
+ - run : ./publish publish
46
+ env :
47
+ CRATES_IO_TOKEN : ${{ secrets.CRATES_IO_TOKEN }}
You can’t perform that action at this time.
0 commit comments