File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release
3
3
on :
4
4
push :
5
5
tags :
6
- - ' v* '
6
+ - " v* "
7
7
8
8
jobs :
9
9
release :
@@ -19,19 +19,19 @@ jobs:
19
19
run : |
20
20
git config --global user.name "release"
21
21
git config --global user.email "[email protected] "
22
-
22
+
23
23
- name : rust version
24
24
run : rustc -V
25
25
26
26
- name : extract branch from tag
27
27
id : extract_branch
28
28
run : |
29
- BRANCH=$( git log -1 --format='%D' ${{ github.ref_name }} | grep -oP 'origin/\K.*' )
29
+ BRANCH=$( git log -1 --format='%D' ${{ github.ref_name }} | grep -oP 'origin/\K\w+' | head -n 1 )
30
30
echo "BRANCH=$BRANCH" >> $GITHUB_OUTPUT
31
31
32
32
- name : print branch
33
33
run : echo ${{ steps.extract_branch.outputs.BRANCH }}
34
-
34
+
35
35
- name : switch to branch
36
36
run : git switch ${{ steps.extract_branch.outputs.BRANCH }}
37
37
41
41
./scripts/build_relib_crate.sh
42
42
git add .
43
43
git commit --allow-empty -m "relib files"
44
-
44
+
45
45
- name : cargo login
46
46
run : cargo login ${{ secrets.CRATES_IO_TOKEN }}
47
47
You can’t perform that action at this time.
0 commit comments