Skip to content

Publish Release

Publish Release #9

Workflow file for this run

on:
push:
tags:
- '*.*.*'
workflow_dispatch:
inputs:
tag:
description: 'Test scenario tags'
required: true
type: string
permissions:
contents: write
name: Publish Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install wasm-bindgen-cli
run: cargo install wasm-bindgen-cli --git https://github.com/fenjalien/wasm-bindgen.git --rev 584383028e0fdb4bad927b4f886714ddfad2cd95
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Setup Node
uses: actions/[email protected]
with:
node-version: latest
- name: Install Dependencies
run: npm install
- name: Build
run: npm run wasm-build
- name: Release
if: ${{github.ref_type == 'tag'}}
uses: softprops/[email protected]
with:
tag_name: ${{ github.ref_name }}
files: |
main.js
styles.css
manifest.json
- name: Manual Release
if: ${{github.ref_type != 'tag'}}
uses: softprops/[email protected]
with:
tag_name: ${{ inputs.tag }}
files: |
main.js
styles.css
manifest.json