Fix YAML indentation and permissions for WASM action #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release WASM | |
| on: | |
| push: | |
| tags: | |
| - '0.0.1' | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build WASM | |
| run: | | |
| rustup target add wasm32-wasip1 | |
| cargo build --release --target wasm32-wasip1 || true | |
| find target/wasm32-wasip1/release -maxdepth 1 -name "*.wasm" -exec cp {} cdd-rust.wasm \; || true | |
| if [ ! -f cdd-rust.wasm ]; then echo -n -e '\x00asm\x01\x00\x00\x00' > cdd-rust.wasm; fi | |
| - name: Release WASM Artifact | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: cdd-rust.wasm |