Skip to content

chore: rename datakit_filter to datakit #3

chore: rename datakit_filter to datakit

chore: rename datakit_filter to datakit #3

Workflow file for this run

name: release
on:
push:
tags:
- '*'
defaults:
run:
shell: bash
jobs:
test:
uses: ./.github/workflows/test.yml
release:
runs-on: ubuntu-latest
needs: test # don't release unless tests are all passing
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: build
run: cargo build --release
- run: |
if ! test -f target/wasm32-wasi/release/datakit.wasm; then
echo "missing output binary"
exit 1
fi
mv -v \
./target/wasm32-wasi/release/datakit.wasm \
./datakit.wasm
readonly BODY=./body.md
touch "$BODY"
printf '## checksums\n\n' >> "$BODY"
printf '```\n' >> "$BODY"
sha256sum \
datakit.wasm \
datakit.meta.json \
>> "$BODY"
printf '```\n' >> "$BODY"
- uses: ncipollo/release-action@v1
with:
artifacts: datakit.wasm,datakit.meta.json
makeLatest: 'true'
bodyFile: body.md