File tree Expand file tree Collapse file tree 8 files changed +1662
-0
lines changed
Expand file tree Collapse file tree 8 files changed +1662
-0
lines changed Original file line number Diff line number Diff line change 1+ [build ]
2+ target = " wasm32-unknown-unknown"
Original file line number Diff line number Diff line change 1+ name : Release dprint-plugin-cedar
2+ on :
3+ workflow_dispatch :
4+ push :
5+ branches :
6+ - main
7+
8+ defaults :
9+ run :
10+ shell : bash
11+
12+ jobs :
13+ build :
14+ name : build
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - uses : actions-rust-lang/setup-rust-toolchain@v1
20+ with :
21+ profile : minimal
22+ target : wasm32-unknown-unknown
23+
24+ - name : Install dependencies
25+ run : cargo build --release --target wasm32-unknown-unknown
26+
27+ - name : Upload artifact
28+ uses : actions/upload-artifact@v4
29+ with :
30+ name : dprint-plugin-cedar
31+ path : target/wasm32-unknown-unknown/release/dprint_plugin_cedar.wasm
32+
33+ release :
34+ needs : build
35+ runs-on : ubuntu-latest
36+ permissions :
37+ contents : write
38+ env :
39+ TAG_NAME : commit-${{ github.sha }}
40+ steps :
41+ - name : Download artifacts
42+ uses : actions/download-artifact@v4
43+
44+ - name : Create GitHub Release
45+ uses : softprops/action-gh-release@v2
46+ with :
47+ tag_name : ${{ env.TAG_NAME }}
48+ name : " dprint-plugin-cedar build for ${{ github.sha }}"
49+ files : target/wasm32-unknown-unknown/release/dprint_plugin_cedar.wasm
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ target /
2+ .vscode /settings.json
3+ .DS_Store
You can’t perform that action at this time.
0 commit comments