@@ -44,18 +44,39 @@ jobs:
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
+ toolchain : stable
51
+ profile : minimal
52
+ override : true
53
+
47
54
- name : Check Release Version
48
55
uses : thebongy/version-check@v1
49
56
with :
50
57
file : Cargo.toml
51
58
tagFormat : v${version}
52
59
id : version_check
53
60
54
- - name : Publish Release
61
+ - name : Publish Release (crates.io)
55
62
uses : actions-rs/cargo@v1
56
63
with :
57
64
command : publish
58
65
args : --token ${{ secrets.CRATES_IO_TOKEN }}
66
+
67
+ - name : Cargo Package
68
+ uses : actions-rs/cargo@v1
69
+ with :
70
+ command : package
71
+ args : --allow-dirty
72
+
73
+ - name : Publish Release (Github Release)
74
+ uses : softprops/action-gh-release@v1
75
+ with :
76
+ files : target/package/juno-${{steps.version_check.outputs.rawVersion}}.crate
77
+ tag_name : ${{steps.version_check.outputs.releaseVersion}}
78
+ env :
79
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59
80
60
81
release-staging :
61
82
if : github.ref == 'refs/heads/staging'
65
86
- uses : actions/checkout@v2
66
87
- run : git fetch --all --tags
67
88
89
+
90
+ - name : Install Rust toolchain
91
+ uses : actions-rs/toolchain@v1
92
+ with :
93
+ toolchain : stable
94
+ profile : minimal
95
+ override : true
96
+
68
97
- name : Check Release Version
69
98
uses : thebongy/version-check@v1
70
99
with :
@@ -75,9 +104,24 @@ jobs:
75
104
- name : Find and Replace
76
105
run : sed -i -e 's/version = "${{ steps.version_check.outputs.rawVersion }}"/version = "${{ steps.version_check.outputs.rawVersion }}-beta"/g' Cargo.toml
77
106
78
- - name : Publish Release
107
+ - name : Publish Release (crates.io)
79
108
uses : actions-rs/cargo@v1
80
109
with :
81
110
command : publish
82
111
args : --token ${{ secrets.CRATES_IO_TOKEN }} --allow-dirty
112
+
113
+ - name : Cargo Package
114
+ uses : actions-rs/cargo@v1
115
+ with :
116
+ command : package
117
+ args : --allow-dirty
118
+
119
+ - name : Publish Release (Github Release)
120
+ uses : softprops/action-gh-release@v1
121
+ with :
122
+ files : target/package/juno-${{steps.version_check.outputs.rawVersion}}-beta.crate
123
+ tag_name : ${{steps.version_check.outputs.releaseVersion}}
124
+ prerelease : true
125
+ env :
126
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83
127
0 commit comments