Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
tags:
- "v[0-9]+*"
pull_request:
workflow_dispatch:
inputs:
tag:
description: "Tag to release (e.g. v0.1.0)"
required: true
type: string

jobs:
build:
Expand All @@ -16,7 +22,6 @@ jobs:
- uses: moonrepo/setup-toolchain@v0
with:
auto-install: true
- run: rustup target add wasm32-wasip1
- id: build
uses: moonrepo/build-wasm-plugin@v0
- if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
Expand All @@ -27,3 +32,10 @@ jobs:
makeLatest: true
prerelease: ${{ steps.build.outputs.prerelease }}
skipIfReleaseExists: true
- if: ${{ github.event_name == 'workflow_dispatch' }}
uses: ncipollo/release-action@v1
with:
artifacts: builds/*
tag: ${{ inputs.tag }}
makeLatest: true
skipIfReleaseExists: true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/target
Cargo.lock
*.swp
*.swo
.DS_Store
Loading