File tree Expand file tree Collapse file tree 8 files changed +1664
-0
lines changed
Expand file tree Collapse file tree 8 files changed +1664
-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+ target : wasm32-unknown-unknown
22+
23+ - name : Install dependencies
24+ run : cargo build --release --target wasm32-unknown-unknown
25+
26+ - name : Upload artifact
27+ uses : actions/upload-artifact@v4
28+ with :
29+ name : dprint-plugin-cedar
30+ path : target/wasm32-unknown-unknown/release/dprint_plugin_cedar.wasm
31+
32+ release :
33+ needs : build
34+ runs-on : ubuntu-latest
35+ permissions :
36+ contents : write
37+ env :
38+ TAG_NAME : commit-${{ github.sha }}
39+ steps :
40+ - name : Download artifacts
41+ uses : actions/download-artifact@v4
42+ with :
43+ path : artifacts
44+
45+ - name : Create GitHub Release
46+ uses : softprops/action-gh-release@v2
47+ with :
48+ tag_name : ${{ env.TAG_NAME }}
49+ name : " dprint-plugin-cedar build for ${{ github.sha }}"
50+ fail_on_unmatched_files : true
51+ files : artifacts/**/*.wasm
52+ env :
53+ 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