Skip to content

Commit

Permalink
publish binary on release
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Apr 23, 2024
1 parent eee0fbf commit 6fdebcf
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---

name: Release

on:
release:
types: [created]

permissions:
contents: write

jobs:
upload-assets:
name: Release Wasm Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: wasm32-unknown-unknown
- uses: arduino/setup-protoc@v1
with:
version: '3.x'
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --target wasm32-unknown-unknown
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: target/wasm32-unknown-unknown/release/wasm_shim.wasm
asset_content_type: application/wasm
asset_name: kuadrant-ratelimit-wasm-${{ github.ref_name }}

0 comments on commit 6fdebcf

Please sign in to comment.