44
44
- uses : actions/checkout@v2
45
45
- run : git fetch --all --tags
46
46
47
+ - name : Install Rust toolchain
48
+ uses : actions-rs/toolchain@v1
49
+ with :
50
+ profile : minimal
51
+ override : true
52
+
47
53
- name : Check Release Version
48
54
uses : thebongy/version-check@v1
49
55
with :
56
62
with :
57
63
command : publish
58
64
args : --token ${{ secrets.CRATES_IO_TOKEN }}
65
+
66
+ - name : Cargo Package
67
+ uses : actions-rs/cargo@v1
68
+ with :
69
+ command : package
70
+
71
+ - name : Publish Release
72
+ uses : softprops/action-gh-release@v1
73
+ with :
74
+ files : target/package/juno-${{steps.version_check.outputs.rawVersion}}
75
+ tag_name : ${{steps.version_check.outputs.releaseVersion}}
76
+ env :
77
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59
78
60
79
release-staging :
61
80
if : github.ref == 'refs/heads/staging'
65
84
- uses : actions/checkout@v2
66
85
- run : git fetch --all --tags
67
86
87
+
88
+ - name : Install Rust toolchain
89
+ uses : actions-rs/toolchain@v1
90
+ with :
91
+ profile : minimal
92
+ override : true
93
+
68
94
- name : Check Release Version
69
95
uses : thebongy/version-check@v1
70
96
with :
@@ -80,4 +106,18 @@ jobs:
80
106
with :
81
107
command : publish
82
108
args : --token ${{ secrets.CRATES_IO_TOKEN }} --allow-dirty
109
+
110
+ - name : Cargo Package
111
+ uses : actions-rs/cargo@v1
112
+ with :
113
+ command : package
114
+
115
+ - name : Publish Release
116
+ uses : softprops/action-gh-release@v1
117
+ with :
118
+ files : target/package/juno-${{steps.version_check.outputs.rawVersion}}
119
+ tag_name : ${{steps.version_check.outputs.releaseVersion}}
120
+ prerelease : true
121
+ env :
122
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83
123
0 commit comments