1
1
name : Release
2
2
3
3
on :
4
- push :
5
- tags :
6
- - v*
4
+ release :
5
+ types : [published]
7
6
8
7
env :
9
8
CARGO_TERM_COLOR : always
@@ -43,12 +42,12 @@ jobs:
43
42
bin_suffix : macos
44
43
steps :
45
44
- name : Checkout repository
46
- uses : actions/checkout@v2
45
+ uses : actions/checkout@v4.2.2
47
46
with :
48
47
fetch-depth : 1
49
48
50
49
- name : Cache
51
- uses : actions/cache@v2
50
+ uses : actions/cache@v4.1.2
52
51
with :
53
52
path : |
54
53
~/.cargo/registry
@@ -74,24 +73,21 @@ jobs:
74
73
run : cp target/${{ matrix.target }}/release/esp_exception_decoder esp_exception_decoder_${{ matrix.bin_suffix }}
75
74
76
75
- name : Release
77
- uses : softprops/action-gh-release@v1
78
- if : startsWith(github.ref, 'refs/tags/')
76
+
79
77
with :
80
78
files : esp_exception_decoder_${{ matrix.bin_suffix }}
81
- env :
82
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83
79
84
80
publish-exe-to-github :
85
81
name : Publish exe tool to Github
86
82
runs-on : ubuntu-latest
87
83
steps :
88
84
- name : Checkout repository
89
- uses : actions/checkout@v2
85
+ uses : actions/checkout@v4.2.2
90
86
with :
91
87
fetch-depth : 1
92
88
93
89
- name : Cache
94
- uses : actions/cache@v2
90
+ uses : actions/cache@v4.1.2
95
91
with :
96
92
path : |
97
93
~/.cargo/registry
@@ -113,19 +109,16 @@ jobs:
113
109
run : cargo build --release --target x86_64-pc-windows-gnu
114
110
115
111
- name : Release
116
- uses : softprops/action-gh-release@v1
117
- if : startsWith(github.ref, 'refs/tags/')
112
+
118
113
with :
119
114
files : target/x86_64-pc-windows-gnu/release/esp_exception_decoder.exe
120
- env :
121
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
122
115
123
116
publish-web-to-github :
124
117
name : Publish web tool to GitHub
125
118
runs-on : ubuntu-latest
126
119
127
120
steps :
128
- - uses : actions/checkout@v2
121
+ - uses : actions/checkout@v4.2.2
129
122
- uses : actions-rs/toolchain@v1
130
123
with :
131
124
toolchain : stable
@@ -137,21 +130,21 @@ jobs:
137
130
run : wasm-pack build --target web --out-dir web/
138
131
- name : Make an archive for web deployment
139
132
run : tar czf esp_exception_decoder_wasm.tar.gz -C web index.html esp_exception_decoder_rs.js esp_exception_decoder_rs_bg.wasm
140
-
133
+
141
134
- name : Release
142
- uses : softprops/action-gh-release@v1
143
- if : startsWith(github.ref, 'refs/tags/')
135
+
144
136
with :
145
137
files : esp_exception_decoder_wasm.tar.gz
146
- env :
147
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
148
-
138
+
149
139
- name : Copy files for GitHub Pages deployment
150
140
run : mkdir -p public; cp web/index.html web/esp_exception_decoder_rs.js web/esp_exception_decoder_rs_bg.wasm public/
151
- - uses : crazy-max/ghaction-github-pages@v2
141
+
142
+
152
143
with :
153
- target_branch : gh-pages
154
- build_dir : public
155
- verbose : true
156
- env :
157
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
144
+ path : public
145
+ retention-days : 1
146
+ - name : Setup Pages
147
+
148
+ - name : Deploy to GitHub Pages
149
+ id : deployment
150
+
0 commit comments