Skip to content

Commit bc1ad54

Browse files
authored
Merge pull request #7 from esphome/esphome
Changes to workflow from ESPHome fork
2 parents 8693c88 + b383f72 commit bc1ad54

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: Release
22

33
on:
4-
push:
5-
tags:
6-
- v*
4+
release:
5+
types: [published]
76

87
env:
98
CARGO_TERM_COLOR: always
109

10+
11+
permissions:
12+
contents: write
13+
1114
jobs:
1215
publish-bin-to-github:
1316
name: Publish bin tool to Github
@@ -43,12 +46,12 @@ jobs:
4346
bin_suffix: macos
4447
steps:
4548
- name: Checkout repository
46-
uses: actions/checkout@v2
49+
uses: actions/checkout@v4.2.2
4750
with:
4851
fetch-depth: 1
4952

5053
- name: Cache
51-
uses: actions/cache@v2
54+
uses: actions/cache@v4.1.2
5255
with:
5356
path: |
5457
~/.cargo/registry
@@ -74,24 +77,21 @@ jobs:
7477
run: cp target/${{ matrix.target }}/release/esp_exception_decoder esp_exception_decoder_${{ matrix.bin_suffix }}
7578

7679
- name: Release
77-
uses: softprops/action-gh-release@v1
78-
if: startsWith(github.ref, 'refs/tags/')
80+
uses: softprops/[email protected]
7981
with:
8082
files: esp_exception_decoder_${{ matrix.bin_suffix }}
81-
env:
82-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8383

8484
publish-exe-to-github:
8585
name: Publish exe tool to Github
8686
runs-on: ubuntu-latest
8787
steps:
8888
- name: Checkout repository
89-
uses: actions/checkout@v2
89+
uses: actions/checkout@v4.2.2
9090
with:
9191
fetch-depth: 1
9292

9393
- name: Cache
94-
uses: actions/cache@v2
94+
uses: actions/cache@v4.1.2
9595
with:
9696
path: |
9797
~/.cargo/registry
@@ -113,19 +113,20 @@ jobs:
113113
run: cargo build --release --target x86_64-pc-windows-gnu
114114

115115
- name: Release
116-
uses: softprops/action-gh-release@v1
117-
if: startsWith(github.ref, 'refs/tags/')
116+
uses: softprops/[email protected]
118117
with:
119118
files: target/x86_64-pc-windows-gnu/release/esp_exception_decoder.exe
120-
env:
121-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122119

123120
publish-web-to-github:
124121
name: Publish web tool to GitHub
125122
runs-on: ubuntu-latest
123+
permissions:
124+
pages: write
125+
id-token: write
126+
contents: write
126127

127128
steps:
128-
- uses: actions/checkout@v2
129+
- uses: actions/checkout@v4.2.2
129130
- uses: actions-rs/toolchain@v1
130131
with:
131132
toolchain: stable
@@ -137,21 +138,21 @@ jobs:
137138
run: wasm-pack build --target web --out-dir web/
138139
- name: Make an archive for web deployment
139140
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-
141+
141142
- name: Release
142-
uses: softprops/action-gh-release@v1
143-
if: startsWith(github.ref, 'refs/tags/')
143+
uses: softprops/[email protected]
144144
with:
145145
files: esp_exception_decoder_wasm.tar.gz
146-
env:
147-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148-
146+
149147
- name: Copy files for GitHub Pages deployment
150148
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
149+
150+
- uses: actions/[email protected]
152151
with:
153-
target_branch: gh-pages
154-
build_dir: public
155-
verbose: true
156-
env:
157-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
152+
path: public
153+
retention-days: 1
154+
- name: Setup Pages
155+
uses: actions/[email protected]
156+
- name: Deploy to GitHub Pages
157+
id: deployment
158+
uses: actions/[email protected]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ It is composed of a ⌨️ Rust library, a 💻 Rust command line tool, and a
66

77
### Web tool
88

9-
The web tool is hosted on [Github Pages here](https://maximeborges.github.io/esp-stacktrace-decoder/).
9+
The web tool is hosted on [Github Pages here](https://esphome.github.io/esp-stacktrace-decoder/).
1010

1111
It is taking your `.elf` firmware and the stack trace, and outputs the list of functions and their locations, without uploading any of your data anywhere.
1212

1313
Everything run in your browser, ✨just like that✨.
1414

1515
![screenshot](https://user-images.githubusercontent.com/159235/136428494-4fdb6c69-74ca-42ab-8bf7-e26d1d625a28.png)
1616

17-
You can also deploy it yourself by hosting the content of the pre-compiled package `esp_exception_decoder_wasm.tar.gz` on the [release page](https://github.com/maximeborges/esp-stacktrace-decoder/releases), or by compiling the library in WebAssembly using `wasm-pack`:
17+
You can also deploy it yourself by hosting the content of the pre-compiled package `esp_exception_decoder_wasm.tar.gz` on the [release page](https://github.com/esphome/esp-stacktrace-decoder/releases), or by compiling the library in WebAssembly using `wasm-pack`:
1818

1919
# Install the Rust toolchain by following the latest instructions from here: https://www.rust-lang.org/tools/install
2020
# Install wasm-pack by following the latest instructions from here: https://rustwasm.github.io/wasm-pack/installer
@@ -35,7 +35,7 @@ A bit more boring command line tool is also available:
3535

3636
![esp_exception_decoder_rs_cli](https://user-images.githubusercontent.com/159235/136429806-48b82e04-cc55-4dda-84de-d143001165c3.png)
3737

38-
Get the latest binary release here: [Releases](https://github.com/maximeborges/esp-stacktrace-decoder/releases)
38+
Get the latest binary release here: [Releases](https://github.com/esphome/esp-stacktrace-decoder/releases)
3939

4040
Or build it yourself:
4141

0 commit comments

Comments
 (0)