Skip to content

Commit cc61652

Browse files
committed
initial commit
0 parents  commit cc61652

File tree

8 files changed

+1664
-0
lines changed

8 files changed

+1664
-0
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build]
2+
target = "wasm32-unknown-unknown"

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
name: dprint-plugin-cedar
44+
path: dprint-plugin-cedar.wasm
45+
46+
- name: Create GitHub Release
47+
uses: softprops/action-gh-release@v2
48+
with:
49+
tag_name: ${{ env.TAG_NAME }}
50+
name: "dprint-plugin-cedar build for ${{ github.sha }}"
51+
files: dprint-plugin-cedar.wasm
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target/
2+
.vscode/settings.json
3+
.DS_Store

0 commit comments

Comments
 (0)